diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-13 11:26:59 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-13 11:26:59 +0800 |
| commit | 5aba702960cc57354142eae601f87910f777b19a (patch) | |
| tree | 29527217836f27afc12f698e9c9c3a5292832aa2 /tools/misc | |
| parent | fc1625c83ac1a3676cf5a29bd12ac4b01324b395 (diff) | |
update
Diffstat (limited to 'tools/misc')
| -rwxr-xr-x | tools/misc/brightness.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/misc/brightness.sh b/tools/misc/brightness.sh new file mode 100755 index 0000000..8533a93 --- /dev/null +++ b/tools/misc/brightness.sh | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #! /usr/bin/env bash | ||
| 2 | |||
| 3 | BRIGHTNESS=$(xrandr --verbose | grep Brightness: | cut -d' ' -f2) | ||
| 4 | |||
| 5 | VALUE=$( echo $BRIGHTNESS $1 | bc ) | ||
| 6 | xrandr --output eDP-1 --brightness $VALUE | ||