diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-04-28 13:57:31 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-04-28 13:57:31 -0700 |
| commit | bab234423fffaf492f6617b53c11d865b8a21815 (patch) | |
| tree | 66f16cdd9b9b2ce32ab4339893288044119baf0f /arch/eww/.config | |
| parent | f131fac65e297c1322edf88bd571a4282171596d (diff) | |
zen, bar, binds
Diffstat (limited to 'arch/eww/.config')
| -rw-r--r-- | arch/eww/.config/eww/eww.yuck | 7 |
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}%")))) |