aboutsummaryrefslogtreecommitdiff
path: root/config/i3/scripts/keyboard_switch
blob: 7ba27f87adb349dc443b82796402436ac794cc5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
active=`~/.config/i3/scripts/keyboard_layout`

case "$active" in
	us)
		setxkbmap cz_qwerty
		;;
	cz_qwerty)
		setxkbmap us
		;;
esac

# Send update to i3blocks
pkill -RTMIN+11 i3blocks