aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/WaybarLayout.sh
diff options
context:
space:
mode:
authorDon Williams <Don.e.williams@gmail.com>2025-10-20 14:23:03 -0400
committerDon Williams <Don.e.williams@gmail.com>2025-10-20 14:23:03 -0400
commit1195ecd49921dc4e243454450440de24f5ab4d76 (patch)
tree9d16395733a02e25b47419e5875494bb856a5449 /config/hypr/scripts/WaybarLayout.sh
parentc862835221decf03b6640bb43e4044861cceaa04 (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/hypr/scripts/WaybarLayout.sh')
-rwxr-xr-xconfig/hypr/scripts/WaybarLayout.sh2
1 files changed, 1 insertions, 1 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")
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage