aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2025-10-05 17:02:52 -0400
committerDon Williams <don.e.williams@gmail.com>2025-10-05 17:02:52 -0400
commitf24d5aed8e4362f42a022a52c16accbcb5b69c66 (patch)
tree81f2bb1167b4581e56bb0cf7b9da92ae8c60dd36
parenteeb7d323e179e899bb21ae494b0052f0196362f9 (diff)
feat(nightlight/ui): enlarge icon via Pango markup (escape=false), reserve space (min-length)
-rwxr-xr-xconfig/hypr/scripts/Hyprsunset.sh4
-rw-r--r--config/waybar/ModulesCustom3
2 files changed, 4 insertions, 3 deletions
diff --git a/config/hypr/scripts/Hyprsunset.sh b/config/hypr/scripts/Hyprsunset.sh
index 1e84bc66..c7c4b395 100755
--- a/config/hypr/scripts/Hyprsunset.sh
+++ b/config/hypr/scripts/Hyprsunset.sh
@@ -81,11 +81,11 @@ cmd_status() {
fi
if [[ "$onoff" == "on" ]]; then
- txt="$(icon_on)"
+ txt="<span size='18pt'>$(icon_on)</span>"
cls="on"
tip="Night light on @ ${TARGET_TEMP}K"
else
- txt="$(icon_off)"
+ txt="<span size='16pt'>$(icon_off)</span>"
cls="off"
tip="Night light off"
fi
diff --git a/config/waybar/ModulesCustom b/config/waybar/ModulesCustom
index f4e95433..146ec275 100644
--- a/config/waybar/ModulesCustom
+++ b/config/waybar/ModulesCustom
@@ -108,8 +108,9 @@
"custom/nightlight": {
"return-type": "json",
"exec": "$HOME/.config/hypr/scripts/Hyprsunset.sh status",
- "interval": 5,
+ "interval": 3,
"format": "{text}",
+ "min-length": 2,
"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