toyotacorolla

vroom
git clone https://git.davidvoz.net/toyotacorolla.git
Log | Files | Refs

keyboardlayouts (330B)


      1 #!/bin/sh
      2 
      3 layout=$(setxkbmap -query | grep layout | awk '{print $2}')
      4 
      5 if [ $layout == "ru" ]; then
      6 	setxkbmap -layout us -variant colemak
      7 	herbe "current layout: colemak"
      8 	exit 0
      9 elif [ $layout == "us" ]; then
     10 	setxkbmap -layout ru
     11 	herbe "current layout: russian"
     12 	exit 0
     13 else
     14 	setxkbmap -layout us -variant colemak
     15 	exit 1
     16 fi