diff options
Diffstat (limited to 'old/brightness')
| -rwxr-xr-x | old/brightness | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/old/brightness b/old/brightness new file mode 100755 index 0000000..a7294fb --- /dev/null +++ b/old/brightness | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Increase / decrease brightness, and pops up a notification | ||
| 4 | # Requires: xbacklight, a notification program such as herbe or notify-send | ||
| 5 | # Usage: brightness {inc|dec} n | ||
| 6 | |||
| 7 | # ksh completion | ||
| 8 | # set -A complete_brightness_1 inc dec | ||
| 9 | # set -A complete_brightness_2 5 | ||
| 10 | |||
| 11 | #notify="notify-send" | ||
| 12 | notify="herbe" | ||
| 13 | |||
| 14 | pkill herbe # comment this too if not using herbe | ||
| 15 | |||
| 16 | xbacklight -$1 $2 && $notify "Brightness: $(xbacklight | sed 's/\..*$//')%" | ||
