summaryrefslogtreecommitdiff
path: root/arch/eww
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-04-28 13:57:31 -0700
committersteven-na <noreply.github@stvnc.dev>2026-04-28 13:57:31 -0700
commitbab234423fffaf492f6617b53c11d865b8a21815 (patch)
tree66f16cdd9b9b2ce32ab4339893288044119baf0f /arch/eww
parentf131fac65e297c1322edf88bd571a4282171596d (diff)
zen, bar, binds
Diffstat (limited to 'arch/eww')
-rw-r--r--arch/eww/.config/eww/eww.yuck7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/eww/.config/eww/eww.yuck b/arch/eww/.config/eww/eww.yuck
index 8574e1f..7c80505 100644
--- a/arch/eww/.config/eww/eww.yuck
+++ b/arch/eww/.config/eww/eww.yuck
@@ -42,8 +42,8 @@
(defpoll wifi-iface :interval "5s"
`IFACE=$(ls /sys/class/net | grep -m1 '^wl'); [ -n "$IFACE" ] && [ "$(cat /sys/class/net/$IFACE/operstate 2>/dev/null)" = "up" ] && echo "$IFACE" || echo "disconnected"`)
-(defpoll brightness :interval "2s"
- `brightnessctl -m 2>/dev/null | awk -F, '{print int($4)}' || echo "100"`)
+(defpoll brightness :interval "1s"
+ `hyprctl hyprsunset gamma 2>/dev/null || echo "100"`)
(defpoll netspeed :interval "3s"
`scripts/netspeed`)
@@ -79,7 +79,8 @@
(defwidget bright-stat []
(eventbox
- :onscroll "[ '{}' = 'up' ] && brightnessctl set +5% || brightnessctl set 5%-"
+ :onscroll "[ '{}' = 'up' ] && hyprctl hyprsunset gamma +5 || hyprctl hyprsunset gamma -5"
+ :onclick "toggle-screen-temp"
(box :class "stat" :space-evenly false :spacing 3
(label :class "stat-label" :text "bright")
(label :class "stat-val" :text "${brightness}%"))))