diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/backlight-ctl | 11 | ||||
| -rwxr-xr-x | bin/volume-ctl | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/bin/backlight-ctl b/bin/backlight-ctl new file mode 100755 index 0000000..7153276 --- /dev/null +++ b/bin/backlight-ctl @@ -0,0 +1,11 @@ +#!/bin/sh + +[ "$#" -ne 1 ] && exit 1; + +case "$1" in + "up") xbacklight -inc 5 ;; + "down") xbacklight -dec 5 ;; + *) exit 1 ;; +esac + +notify-send "backlight $(xbacklight | cut -d '.' -f 1)" diff --git a/bin/volume-ctl b/bin/volume-ctl new file mode 100755 index 0000000..7e3ec83 --- /dev/null +++ b/bin/volume-ctl @@ -0,0 +1,12 @@ +#!/bin/sh + +[ "$#" -ne 1 ] && exit 1; + +case "$1" in + "up") pulseaudio-ctl up ;; + "down") pulseaudio-ctl down ;; + "mute") pulseaudio-ctl mute ;; + *) exit 1 ;; +esac + +notify-send "volume $(pulseaudio-ctl full-status | cut -d ' ' -f 1)" |
