diff options
Diffstat (limited to 'volume')
| -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%" | ||
