mon-on: split off keyboard configs to another script
also added xcompose configs
This commit is contained in:
parent
f3f8035798
commit
25b1d0fd0c
16
src/.config/xcompose/emoji
Normal file
16
src/.config/xcompose/emoji
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# This file is autogenerated by emoji.py.
|
||||||
|
|
||||||
|
<Multi_key> <Escape> <p> <e> <n> <s> : "😔"
|
||||||
|
<Multi_key> <Escape> <c> <l> <o> <w> : "🤡"
|
||||||
|
<Multi_key> <Escape> <s> <u> <n> <g> : "😎"
|
||||||
|
<Multi_key> <Escape> <t> <h> <u> : "👍"
|
||||||
|
<Multi_key> <Escape> <s> <o> <b> : "😭"
|
||||||
|
<Multi_key> <Escape> <f> <r> <o> <g> : "🐸"
|
||||||
|
<Multi_key> <Escape> <i> <n> <n> <o> <c> : "😇"
|
||||||
|
<Multi_key> <Escape> <v> : "✌️"
|
||||||
|
<Multi_key> <Escape> <r> <e> <l> <i> <e> <v> : "😌"
|
||||||
|
<Multi_key> <Escape> <s> <k> <u> <l> : "💀"
|
||||||
|
<Multi_key> <Escape> <e> <y> <e> <s> : "👀"
|
||||||
|
<Multi_key> <Escape> <e> <y> <e> : "👁️"
|
||||||
|
<Multi_key> <Escape> <t> <h> <i> <n> <k> : "🤔"
|
||||||
|
<Multi_key> <Escape> <w> <a> <v> <e> : "👋"
|
28
src/.config/xcompose/emoji.py
Executable file
28
src/.config/xcompose/emoji.py
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# compiles list of emoji into valid xcompose file
|
||||||
|
# ./emoji.py > emoji
|
||||||
|
|
||||||
|
emoji = """
|
||||||
|
😔 pens
|
||||||
|
🤡 clow
|
||||||
|
😎 sung
|
||||||
|
👍 thu
|
||||||
|
😭 sob
|
||||||
|
🐸 frog
|
||||||
|
😇 innoc
|
||||||
|
✌️ v
|
||||||
|
😌 reliev
|
||||||
|
💀 skul
|
||||||
|
👀 eyes
|
||||||
|
👁️ eye
|
||||||
|
🤔 think
|
||||||
|
👋 wave
|
||||||
|
""".strip()
|
||||||
|
|
||||||
|
prefix = "<Multi_key> <Escape>"
|
||||||
|
|
||||||
|
print("# This file is autogenerated by emoji.py.\n")
|
||||||
|
for line in emoji.split("\n"):
|
||||||
|
sym, name = line.split()
|
||||||
|
codes = " ".join([f"<{char}>" for char in name])
|
||||||
|
print(f"{prefix} {codes} : \"{sym}\"")
|
5
src/.config/xcompose/main
Normal file
5
src/.config/xcompose/main
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# include default settings
|
||||||
|
include "%L"
|
||||||
|
|
||||||
|
# emoji
|
||||||
|
include "%H/.config/xcompose/emoji"
|
4
src/.local/bin/keyboard.sh
Executable file
4
src/.local/bin/keyboard.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Set keyboard settings
|
||||||
|
setxkbmap -layout us,ca -variant basic,fr -option 'grp:alts_toggle, caps:swapescape, compose:rctrl'
|
||||||
|
xset r rate 300 50
|
@ -10,10 +10,6 @@ xsetwacom set 17 MapToOutput eDP1
|
|||||||
xsetwacom set 18 MapToOutput eDP1
|
xsetwacom set 18 MapToOutput eDP1
|
||||||
xsetwacom set 23 MapToOutput eDP1
|
xsetwacom set 23 MapToOutput eDP1
|
||||||
|
|
||||||
# Set keyboard settings
|
|
||||||
setxkbmap -layout au,us,ca -variant basic,haw,multi -option 'grp:win_space_toggle, caps:swapescape'
|
|
||||||
xset r rate 300 50
|
|
||||||
|
|
||||||
# Configure touchpad sensitivity
|
# Configure touchpad sensitivity
|
||||||
|
|
||||||
# To change this:
|
# To change this:
|
||||||
|
@ -10,6 +10,7 @@ fi
|
|||||||
if [ $SYSTEM_PROFILE = "DEFAULT" ]; then
|
if [ $SYSTEM_PROFILE = "DEFAULT" ]; then
|
||||||
picom &
|
picom &
|
||||||
fi
|
fi
|
||||||
|
battwatch.sh &
|
||||||
xwallpaper --center .config/wall.png
|
xwallpaper --center .config/wall.png
|
||||||
# Host specific wallpapers
|
# Host specific wallpapers
|
||||||
wallpaper
|
wallpaper
|
||||||
@ -30,7 +31,12 @@ export DBUS_SESSION_BUS_WINDOWID
|
|||||||
# IME
|
# IME
|
||||||
export GTK_IM_MODULE=fcitx
|
export GTK_IM_MODULE=fcitx
|
||||||
export QT_IM_MODULE=fcitx
|
export QT_IM_MODULE=fcitx
|
||||||
export XMODIFIERS=@im=fcitx
|
# for some reason this breaks deadkeys
|
||||||
|
#export XMODIFIERS=@im=fcitx
|
||||||
|
|
||||||
|
# set up keyboard
|
||||||
|
keyboard.sh
|
||||||
|
export XCOMPOSEFILE="$XDG_CONFIG_HOME"/xcompose/main
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
DATE=$(date +'%H:%M:%S %a %b %d')
|
DATE=$(date +'%H:%M:%S %a %b %d')
|
||||||
|
Loading…
Reference in New Issue
Block a user