diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:50:38 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:50:38 +0100 |
| commit | 6f45972265b532365421658f1370742bb82b757b (patch) | |
| tree | c293262456ba35ae5c1b778684527ed5c70c7ad1 /brightness | |
| parent | 547311be5f6d90f36022a6e5e6fdbfb26862fd75 (diff) | |
| download | scripts-6f45972265b532365421658f1370742bb82b757b.tar.gz scripts-6f45972265b532365421658f1370742bb82b757b.zip | |
Changed default notification system to herbe
Diffstat (limited to '')
| -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/\..*$//')%" | ||
