From fe442a64d6f11457eed2ca81a643249fa62348d9 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 8 Oct 2020 02:30:38 -0400 Subject: layouttoggle updates its dwmblock --- .local/bin/dwmbar/dwmb-test | 2 +- .local/bin/layouttoggle | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/dwmbar/dwmb-test b/.local/bin/dwmbar/dwmb-test index f69b76b..485614e 100755 --- a/.local/bin/dwmbar/dwmb-test +++ b/.local/bin/dwmbar/dwmb-test @@ -1,3 +1,3 @@ #!/bin/sh -cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 +cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 99 | head -n 1 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) + -- cgit v1.2.3