diff --git a/switchkb b/switchkb new file mode 100755 index 0000000..0036f01 --- /dev/null +++ b/switchkb @@ -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