diff options
Diffstat (limited to 'brightness')
| -rwxr-xr-x | brightness | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -1,7 +1,12 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Increase / decrease brightness, and pops up a notification | 3 | # Increase / decrease brightness, and pops up a notification |
| 4 | # Requires: xbacklight, notify-send | 4 | # Requires: xbacklight, a notification program such as herbe or notify-send |
| 5 | # Usage: brightness {inc|dec} n | 5 | # Usage: brightness {inc|dec} n |
| 6 | 6 | ||
| 7 | xbacklight -$1 $2 && notify-send "Brightness: $(xbacklight | sed 's/\..*$//')%" | 7 | #notify="notify-send" |
| 8 | notify="herbe" | ||
| 9 | |||
| 10 | pkill herbe # comment this too if not using herbe | ||
| 11 | |||
| 12 | xbacklight -$1 $2 && $notify "Brightness: $(xbacklight | sed 's/\..*$//')%" | ||
