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