summaryrefslogtreecommitdiffstats
path: root/sxhkd/.local/bin/toggle-layout
blob: fcae134a230e6dde51118e84a6da0845f0913c02 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

lang="$(setxkbmap -print | grep xkb_symbols | cut -d'+' -f 2)"

if [ "$lang" = "us" ]; then
    setxkbmap ir
else
    setxkbmap us
fi