From ee91ff025bb302b9065f5862f467ac4426833133 Mon Sep 17 00:00:00 2001 From: SDGDen Date: Sat, 6 Jun 2026 20:15:57 +0200 Subject: [PATCH] fixed accidentally multi-spawning monocle bar if going from one monocle layout to another --- sdgos/tuis/layout-switch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sdgos/tuis/layout-switch.sh b/sdgos/tuis/layout-switch.sh index e8902a5..8671c32 100755 --- a/sdgos/tuis/layout-switch.sh +++ b/sdgos/tuis/layout-switch.sh @@ -10,6 +10,7 @@ CMD=$(cat ~/.config/sdgos/tuis/layouts.list | grep -e "$SELECTED" | cut -d '|' - eval $CMD if [[ "$SELECTED" == "Monocle " ]] || [[ "$SELECTED" == "Deck - horizontal " ]] || [[ "$SELECTED" == "Deck - vertical " ]]; then + pkill -9 waybar mmsg dispatch spawn_shell,'waybar -c ~/.config/sdgos/monocle/config -s ~/.config/sdgos/monocle/style.css' else pkill -9 waybar