Compare commits

...

2 Commits

Author SHA1 Message Date
= 448ce94ae8 Merge branch 'master' of ssh://git.rayelliott.dev:3222/dots/sxhkd 2021-01-01 00:31:12 +00:00
= 459b7dd049 update 2021-01-01 00:31:01 +00:00
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,10 @@
#super + @space
# dmenu_run
# toggle keyboard layout
super + BackSpace
~/.config/sxhkd/toggle-gb-ru-kb.sh
# mouse scroll down
super + Down
xte 'mouseclick 5'

8
toggle-gb-ru-kb.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
LAYOUT=$(setxkbmap -query | grep layout | grep -oP "gb|ru")
if [ $LAYOUT = 'gb' ] ; then
setxkbmap ru
else
setxkbmap gb
fi