summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-28 14:04:04 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-28 14:04:04 +0200
commita4d43f2c6855dfc1b0c5342348dfdf3645cec8ac (patch)
tree308229e5fc99a64301b1bb433d028643197bb75e
parent9218d7713a7b3fa9c4437d307708c172e478f6f9 (diff)
eww: Refresh brightness every second
-rwxr-xr-x.config/eww/scripts/backlight-listener6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/eww/scripts/backlight-listener b/.config/eww/scripts/backlight-listener
index 82b5a55..89ba069 100755
--- a/.config/eww/scripts/backlight-listener
+++ b/.config/eww/scripts/backlight-listener
@@ -2,6 +2,12 @@
while :
do
+ sleep 1
+ lux | xargs printf '%g%%\n'
+done &
+
+while :
+do
lux | xargs printf '%g%%\n'
inotifywait -qqe modify /sys/class/backlight/*/brightness
done