diff options
author | EuAndreh <eu@euandre.org> | 2022-05-14 01:43:25 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-14 01:43:25 -0300 |
commit | e7d5cf3d112fe67a67ac974e7691caa4dd2dcd82 (patch) | |
tree | aef1d2b0ca86cecb7f724782a9596aedb40b9d37 /bin | |
parent | bin/brightness: Use consistent quoting only around variables (diff) | |
download | dotfiles-e7d5cf3d112fe67a67ac974e7691caa4dd2dcd82.tar.gz dotfiles-e7d5cf3d112fe67a67ac974e7691caa4dd2dcd82.tar.xz |
bin/brightness: Put device information in $BACKLIGHT_DEVICE variable instead of file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/brightness | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/brightness b/bin/brightness index 7da0bde..10bd198 100755 --- a/bin/brightness +++ b/bin/brightness @@ -3,8 +3,7 @@ set -eu BRIGHTNESS_DIFF="$1" -DEVICE="$(cat "$XDG_CONFIG_HOME"/backlight-device)" -HANDLER="/sys/class/backlight/$DEVICE" +HANDLER=/sys/class/backlight/"$BACKLIGHT_DEVICE" OLD_BRIGHTNESS="$(cat "$HANDLER"/brightness)" MAX_BRIGHTNESS="$(cat "$HANDLER"/max_brightness)" |