summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/backlight-listener
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts/backlight-listener')
-rwxr-xr-x.config/eww/scripts/backlight-listener7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/eww/scripts/backlight-listener b/.config/eww/scripts/backlight-listener
new file mode 100755
index 0000000..82b5a55
--- /dev/null
+++ b/.config/eww/scripts/backlight-listener
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+while :
+do
+ lux | xargs printf '%g%%\n'
+ inotifywait -qqe modify /sys/class/backlight/*/brightness
+done