diff options
| author | Don Williams <Don.e.williams@gmail.com> | 2025-10-20 14:23:03 -0400 |
|---|---|---|
| committer | Don Williams <Don.e.williams@gmail.com> | 2025-10-20 14:23:03 -0400 |
| commit | 1195ecd49921dc4e243454450440de24f5ab4d76 (patch) | |
| tree | 9d16395733a02e25b47419e5875494bb856a5449 /config | |
| parent | c862835221decf03b6640bb43e4044861cceaa04 (diff) | |
Waybar: fix rofi selection marker stripping; prevent embedding 👉 in symlink names
Problem: reselecting the current style/layout left the '👉 ' prefix in the choice, so the symlink target included it (e.g., style.css -> .../👉 [0 VERTICAL] [Catpuccin] Mocha.css).
Cause: options are annotated as "👉 ${name}", but the code used: choice=${choice# $MARKER} (matches ' 👉'), not the actual prefix '👉 '.
Fix: use choice=${choice#"$MARKER "} in WaybarStyles.sh and WaybarLayout.sh.
Result: selecting the same item no longer pollutes the symlink target.
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/scripts/WaybarLayout.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarStyles.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index b4d9c493..f65c9c00 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -50,7 +50,7 @@ main() { [[ -z "$choice" ]] && { echo "No option selected. Exiting."; exit 0; } # Strip marker before applying - choice=${choice# $MARKER} + choice=${choice#"$MARKER "} case "$choice" in "no panel") diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index a439f8eb..15767c2a 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -51,7 +51,7 @@ main() { [[ -z "$choice" ]] && { echo "No option selected. Exiting."; exit 0; } # remove annotation and apply - choice=${choice# $MARKER} + choice=${choice#"$MARKER "} apply_style "$choice" } |
