aboutsummaryrefslogtreecommitdiffstats
path: root/bin/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'bin/brightness')
-rwxr-xr-xbin/brightness23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/brightness b/bin/brightness
deleted file mode 100755
index 192dc4c..0000000
--- a/bin/brightness
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-# Script to lower/ raise screen brightness using xbacklight (xorg-xbacklight)
-
-set -e -u
-
-export DISPLAY=:0
-x11user=$(w |grep -w :0 | cut -d " " -f1)
-export XAUTHORITY=/home/$x11user/.Xauthority
-step=5
-
-if [ -x /usr/bin/xbacklight ]; then
- if [ "$1" = "video/brightnessup" ] && [ $2 = "BRTUP" ]; then
- xbacklight -inc "$step"
- elif [ "$1" = "video/brightnessdown" ] && [ $2 = "BRTDN" ]; then
- xbacklight -dec "$step"
- else
- exit 1
- fi
-else
- exit 1
-fi
-
-exit 0