summaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts')
-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