add switchkb
This commit is contained in:
parent
637857a6fe
commit
01b63ecd5f
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
currentkb() {
|
||||
setxkbmap -query | grep layout | awk '{print $2}'
|
||||
}
|
||||
|
||||
if currentkb | grep "^nous$"; then
|
||||
setxkbmap ru
|
||||
#elif currentkb | grep "^ru$"; then
|
||||
# apl keyboard
|
||||
# setxkbmap us,apl -variant ,dyalog -option grp:switch
|
||||
else
|
||||
setxkbmap nous
|
||||
fi
|
Loading…
Reference in New Issue