summaryrefslogtreecommitdiff
path: root/.local/bin/layouttoggle
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 02:30:38 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 02:30:38 -0400
commitfe442a64d6f11457eed2ca81a643249fa62348d9 (patch)
tree90862fd2943560c40b95f713983a6de84dc1c31f /.local/bin/layouttoggle
parent8ab13fc535e0c9eb07b2e8333bd7233a1a9a548d (diff)
layouttoggle updates its dwmblock
Diffstat (limited to '.local/bin/layouttoggle')
-rwxr-xr-x.local/bin/layouttoggle10
1 files changed, 2 insertions, 8 deletions
diff --git a/.local/bin/layouttoggle b/.local/bin/layouttoggle
index 4742080..139ceb9 100755
--- a/.local/bin/layouttoggle
+++ b/.local/bin/layouttoggle
@@ -5,20 +5,14 @@ layout=$(cat $HOME/.cache/layout)
case "$layout" in
ca) setxkbmap -model pc104 -layout us -variant ,,
echo us > $HOME/.cache/layout
- # pkill -RTMIN+46 dwmblocks
- $SCRIPTS/cron/dwmbar
;;
us) setxkbmap -model pc104 -layout ca -variant ,,
echo ca > $HOME/.cache/layout
- # pkill -RTMIN+46 dwmblocks
- $SCRIPTS/cron/dwmbar
;;
*) setxkbmap -model pc104 -layout us -variant ,,
echo us > $HOME/.cache/layout
- # pkill -RTMIN+46 dwmblocks
- $SCRIPTS/cron/dwmbar
;;
esac
-# [[ "$layout" == "us" ]] && setxkbmap -model pc104 -layout ca -variant ,, ; echo ca > $HOME/.cache/layout && $SCRIPTS/cron/dwmbar
-# [[ "$layout" == "us" ]] || setxkbmap -model pc104 -layout ca -variant ,, ; echo ca > $HOME/.cache/layout && $SCRIPTS/cron/dwmbar
+kill -38 $(pidof dwmblocks)
+