blob: d1ceba593c9eec1139f4ce2a6ea7390048b07ea2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
layout=$(cat "$HOME/.cache/layout")
case "$layout" in
ca)
setxkbmap -model pc104 -layout us -variant ,,
echo us >"$HOME/.cache/layout"
;;
us)
setxkbmap -model pc104 -layout ca -variant ,,
echo ca >"$HOME/.cache/layout"
;;
*)
setxkbmap -model pc104 -layout us -variant ,,
echo us >"$HOME/.cache/layout"
;;
esac
kill -38 "$(pidof dwmblocks)"
|