diff options
author | David Runge <dave@sleepmap.de> | 2016-05-08 20:22:16 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-05-08 20:22:16 +0200 |
commit | 08845cec6393482a60493e465f0ba13727386f5b (patch) | |
tree | 8282cffd99ca2a12dfb3d34a7f82a28ac26d71b5 /bin/brightness | |
parent | 9cfb64c997b8e5f095c75f39641762f44d3307c2 (diff) | |
download | dotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.gz dotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.bz2 dotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.xz dotfiles-08845cec6393482a60493e465f0ba13727386f5b.zip |
bin/set_volume: Making script not depend on functions.sh anymore. Introducing bash strict mode.
Diffstat (limited to 'bin/brightness')
-rwxr-xr-x | bin/brightness | 23 |
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 |