From af8f372739ae751d566a34dbff1778dbff33bef0 Mon Sep 17 00:00:00 2001 From: Nicholai Date: Sun, 23 Nov 2025 23:12:23 -0700 Subject: [PATCH] Fix wofi markup parsing for layout names with ampersands Added --parse-search false to prevent wofi from trying to parse special characters like '&' in layout names (e.g. '[BOT & Left]') --- scripts/switch-layout.sh | 2 +- scripts/switch-style.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/switch-layout.sh b/scripts/switch-layout.sh index e0a9633..a48febc 100755 --- a/scripts/switch-layout.sh +++ b/scripts/switch-layout.sh @@ -9,7 +9,7 @@ layouts=($(ls "$waybar_layouts" | sort)) # If wofi is available, use it for selection if command -v wofi &> /dev/null; then - choice=$(printf '%s\n' "${layouts[@]}" | wofi --dmenu -i -p "Waybar Layout") + choice=$(printf '%s\n' "${layouts[@]}" | wofi --dmenu -i -p "Waybar Layout" --parse-search false) else # Otherwise use a simple CLI menu echo "Available Waybar Layouts:" diff --git a/scripts/switch-style.sh b/scripts/switch-style.sh index 7720bf4..e280768 100755 --- a/scripts/switch-style.sh +++ b/scripts/switch-style.sh @@ -9,7 +9,7 @@ styles=($(ls "$waybar_styles"/*.css 2>/dev/null | xargs -n1 basename | sort)) # If wofi is available, use it for selection if command -v wofi &> /dev/null; then - choice=$(printf '%s\n' "${styles[@]}" | wofi --dmenu -i -p "Waybar Style") + choice=$(printf '%s\n' "${styles[@]}" | wofi --dmenu -i -p "Waybar Style" --parse-search false) else # Otherwise use a simple CLI menu echo "Available Waybar Styles:"