aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/WaybarStyles.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/WaybarStyles.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/WaybarStyles.sh')
-rwxr-xr-xconfig/hypr/scripts/WaybarStyles.sh2
1 files changed, 1 insertions, 1 deletions
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"
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage