Compare commits
2 Commits
d7d68f4f53
...
448ce94ae8
Author | SHA1 | Date |
---|---|---|
= | 448ce94ae8 | |
= | 459b7dd049 |
4
sxhkdrc
4
sxhkdrc
|
@ -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'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue