feat: add wlsunset nightlight toggle with Waybar module
Update PKGBUILD version / update-pkgver (push) Successful in 3s

Add blue light filter support via wlsunset, toggleable through a Waybar
module in the brightness group. Nightlight icon is the primary element,
backlight slider expands on click.

- Add wlsunset package to official.txt
- Add moonarch-nightlight toggle script (kill/restart wlsunset)
- Add moonarch-waybar-nightlight status script (JSON output)
- Add custom/nightlight module to group/brightness in Waybar config
- Add Catppuccin Yellow highlight for active nightlight state
- Add wlsunset autostart in Niri config (5000K night temperature)
This commit is contained in:
2026-04-09 12:08:35 +02:00
parent f6869c9cea
commit 4c609135e9
7 changed files with 45 additions and 0 deletions
+9
View File
@@ -61,6 +61,7 @@
"group/brightness": {
"orientation": "inherit",
"modules": [
"custom/nightlight",
"backlight",
"backlight/slider"
],
@@ -304,6 +305,14 @@
"<span color='#dd532e' size='8pt' rise='1.5pt'>█</span>"
]
},
"custom/nightlight": {
"exec": "moonarch-waybar-nightlight",
"return-type": "json",
"interval": "once",
"signal": 11,
"on-click": "moonarch-nightlight",
"format": "{}"
},
"custom/cpugov": {
"exec": "moonarch-waybar-cpugov",
"return-type": "json",
+4
View File
@@ -257,6 +257,10 @@ widget widget>* {
color: alpha(@theme_selected_bg_color, 0.9);
}
#custom-nightlight.on {
color: #f9e2af;
}
menu {
border-radius: 4px;
}