desktop-utils/ewwScripts/brightness.sh
2024-06-03 11:56:16 +02:00

10 lines
234 B
Bash
Executable file

#!/usr/bin/env 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