new keyboard layout handling
new keyboard layout handling
This commit is contained in:
parent
c8024f3d41
commit
9454d9dd82
3 changed files with 9 additions and 2 deletions
|
@ -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
3
.local/bin/statusbar/sb-xkbmap
Executable 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 &
|
4
.local/bin/statusbar/sbd-xkbmap
Executable file
4
.local/bin/statusbar/sbd-xkbmap
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
while : ; do
|
||||
xkb-switch -w && pkill -RTMIN+15 dwmblocks
|
||||
done
|
Loading…
Add table
Reference in a new issue