From 5aba702960cc57354142eae601f87910f777b19a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 13 Sep 2020 03:26:59 +0000 Subject: update --- tools/misc/brightness.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/misc/brightness.sh (limited to 'tools/misc/brightness.sh') 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 @@ +#! /usr/bin/env bash + +BRIGHTNESS=$(xrandr --verbose | grep Brightness: | cut -d' ' -f2) + +VALUE=$( echo $BRIGHTNESS $1 | bc ) +xrandr --output eDP-1 --brightness $VALUE -- cgit v1.2.3-70-g09d2