aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2025-10-05 15:23:05 -0400
committerDon Williams <don.e.williams@gmail.com>2025-10-05 15:23:05 -0400
commiteeb7d323e179e899bb21ae494b0052f0196362f9 (patch)
tree379fd5a3264c9071f8aca3e4d1859a5cca235b2c
parentd200f9134d5e6bbc558b8acaea64229ba7b420cb (diff)
fix(waybar/nightlight): use universal icons (☀/🌇) and explicit {text} format for JSON
-rwxr-xr-xconfig/hypr/scripts/Hyprsunset.sh13
-rw-r--r--config/waybar/ModulesCustom2
2 files changed, 8 insertions, 7 deletions
diff --git a/config/hypr/scripts/Hyprsunset.sh b/config/hypr/scripts/Hyprsunset.sh
index 0372d720..1e84bc66 100755
--- a/config/hypr/scripts/Hyprsunset.sh
+++ b/config/hypr/scripts/Hyprsunset.sh
@@ -21,21 +21,22 @@ ensure_state() {
# Render icons using pango markup to allow colorization
icon_off() {
- # bright sun when not activated (plain glyph; styling via Waybar CSS by class)
- printf ""
+ # universally available sun symbol
+ printf "☀"
}
icon_on() {
case "$ICON_MODE" in
sunset)
- # fallback to same glyph; color can be handled by CSS if desired
- printf ""
+ # sunset emoji (falls back to tofu if no emoji font)
+ printf "🌇"
;;
blue)
- printf ""
+ # no color in text; rely on CSS .on to style if desired
+ printf "☀"
;;
*)
- printf ""
+ printf "☀"
;;
esac
}
diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom
index 512ff751..f4e95433 100644
--- a/config/waybar/ModulesCustom
+++ b/config/waybar/ModulesCustom
@@ -109,7 +109,7 @@
"return-type": "json",
"exec": "$HOME/.config/hypr/scripts/Hyprsunset.sh status",
"interval": 5,
- "format": "{}",
+ "format": "{text}",
"on-click": "$HOME/.config/hypr/scripts/Hyprsunset.sh toggle",
"tooltip": true,
"tooltip-format": "Night light toggle",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage