5 screen_brightness_device_path
="$1"
9 OFS = msg_fs ? msg_fs : "|"
10 Kfs = key_fs ? key_fs : ":"
13 FILENAME ~ "/max_brightness$" {max = $1; next}
14 FILENAME ~ "/brightness$" {cur = $1; next}
15 END {print("percentage", (cur / max) * 100)}
17 "$screen_brightness_device_path/max_brightness" \
18 "$screen_brightness_device_path/brightness"