desktop-utils/scripts/brightness.sh
2024-03-13 19:01:27 +01:00

10 lines
226 B
Bash
Executable file

#!/bin/bash
FILE_TO_WATCH="/sys/class/backlight/intel_backlight/brightness" # Replace with the actual file path
cat "$FILE_TO_WATCH"
while true; do
inotifywait -e modify "$FILE_TO_WATCH"
cat "$FILE_TO_WATCH"
done