aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/bar-toggle.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/eww/scripts/bar-toggle.sh b/.config/eww/scripts/bar-toggle.sh
index ea7e6b0..5e3f46a 100755
--- a/.config/eww/scripts/bar-toggle.sh
+++ b/.config/eww/scripts/bar-toggle.sh
@@ -5,8 +5,7 @@ for ((i = 0 ; i < $monitors ; i++)); do
echo $i
active_monitor=$(river-bedload -print outputs | jq 'map(.focused)|to_entries|.[]|select(.value)|.key')
# Flip value e.g 0 to 1
- ((active_monitor ^= 1))
- if [ "$monitors" == "1" ]; then
+ if [ "$monitors" != "1" ]; then
((active_monitor ^= 1))
fi
bar=$(eww active-windows | grep "bar$i")