aboutsummaryrefslogtreecommitdiffstats
path: root/xorg/.local/usr
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/.local/usr')
-rwxr-xr-xxorg/.local/usr/bin/xbacklightmon17
1 files changed, 0 insertions, 17 deletions
diff --git a/xorg/.local/usr/bin/xbacklightmon b/xorg/.local/usr/bin/xbacklightmon
deleted file mode 100755
index f5b46c0..0000000
--- a/xorg/.local/usr/bin/xbacklightmon
+++ /dev/null
@@ -1,17 +0,0 @@
1#!/bin/sh
2
3path=/sys/class/backlight/acpi_video0
4
5luminance() {
6 read -r level < "$path"/actual_brightness
7 factor=$((max / 100))
8 printf '%d\n' "$((level / factor))"
9}
10
11read -r max < "$path"/max_brightness
12
13echo xbacklight -set "$(luminance)"
14
15inotifywait -me modify --format '' "$path"/actual_brightness | while read; do
16 echo xbacklight -set "$(luminance)"
17done