diff options
| author | Don Williams <don.e.williams@gmail.com> | 2025-10-05 15:23:05 -0400 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2025-10-05 15:23:05 -0400 |
| commit | eeb7d323e179e899bb21ae494b0052f0196362f9 (patch) | |
| tree | 379fd5a3264c9071f8aca3e4d1859a5cca235b2c /config | |
| parent | d200f9134d5e6bbc558b8acaea64229ba7b420cb (diff) | |
fix(waybar/nightlight): use universal icons (☀/🌇) and explicit {text} format for JSON
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/scripts/Hyprsunset.sh | 13 | ||||
| -rw-r--r-- | config/waybar/ModulesCustom | 2 |
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", |
