summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/backlight-listener
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-23 06:47:03 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-23 06:47:03 +0300
commit7ff798534a6fb9c99611d18ee22757346798ef61 (patch)
tree1f6603ff9f3eede365e6963b3ac66b5edbd232fb /.config/eww/scripts/backlight-listener
parent8f7cbf4ad87d63fe82173645ecb590ebb0f12354 (diff)
eww: Add an eww configuration
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