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 /volume | |
| parent | 547311be5f6d90f36022a6e5e6fdbfb26862fd75 (diff) | |
| download | scripts-6f45972265b532365421658f1370742bb82b757b.tar.gz scripts-6f45972265b532365421658f1370742bb82b757b.zip | |
Changed default notification system to herbe
Diffstat (limited to '')
| -rwxr-xr-x | volume | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -2,9 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | # Change volume and notify | 3 | # Change volume and notify |
| 4 | # Usage: volume {+n|-n} | 4 | # Usage: volume {+n|-n} |
| 5 | # Requires: pulsemixer, notify-send | 5 | # Requires: pulsemixer, notify-send or similar |
| 6 | 6 | ||
| 7 | #TODO: use this to replace myvolumeup/myvolumedown | 7 | #notify=notify-send |
| 8 | notify=herbe | ||
| 8 | 9 | ||
| 9 | newvol=$(pulsemixer --change-volume "$1" --get-volume | awk '{print $1}') | 10 | newvol=$(pulsemixer --change-volume "$1" --get-volume | awk '{print $1}') |
| 10 | notify-send "Volume" "$newvol%" | 11 | |
| 12 | pkill herbe # comment this line too if not using herbe | ||
| 13 | $notify "Volume" "$newvol%" | ||
