1
0
Fork 0

new keyboard layout handling

new keyboard layout handling
This commit is contained in:
Luca Bilke 2022-09-17 00:06:31 +02:00
parent c8024f3d41
commit 9454d9dd82
3 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
mapdir="${KEYMAPS_DIR:-$HOME/.local/bin/keymaps}"
setxkbmap -layout de,us -variant nodeadkeys,dvorak -option caps:super -option terminate:ctrl_alt_bksp
xset r rate 300 50
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
eval "$mapdir/$(ls "$mapdir" | dmenu -i -p 'Mapping: ')"

3
.local/bin/statusbar/sb-xkbmap Executable file
View file

@ -0,0 +1,3 @@
#/bin/sh
printf "\033[11m\033[10m %s" "$(xkb-switch -p)"
pidof -x sbd-xkbmap >/dev/null 2>&1 || sbd-xkbmap >/dev/null 2>&1 &

View file

@ -0,0 +1,4 @@
#!/bin/sh
while : ; do
xkb-switch -w && pkill -RTMIN+15 dwmblocks
done