summaryrefslogtreecommitdiffstats
path: root/sxhkd/.local/bin/toggle-layout
blob: 5df7e2f057df326d80f6d92baa367553df91efc2 (plain) (blame)
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