1 2 3 4 5 6 7 8 9 10
#!/bin/bash lang="$(setxkbmap -print | grep xkb_symbols | cut -d'+' -f 2)" if [ "$lang" = "us" ]; then setxkbmap ir else setxkbmap us #xmodmap $HOME/.Xmodmap fi