aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/misc/brightness.sh6
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
3BRIGHTNESS=$(xrandr --verbose | grep Brightness: | cut -d' ' -f2)
4
5VALUE=$( echo $BRIGHTNESS $1 | bc )
6xrandr --output eDP-1 --brightness $VALUE