diff options
Diffstat (limited to 'togglemute')
| -rwxr-xr-x | togglemute | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,7 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Toggle mute state and notify | 3 | # Toggle mute state and notify |
| 4 | # Requires: pulsemixer, notify-send | 4 | # Requires: pulsemixer, notify-send or similar |
| 5 | |||
| 6 | #notify=notify-send | ||
| 7 | notify=herbe | ||
| 5 | 8 | ||
| 6 | ismute=$(pulsemixer --toggle-mute --get-mute) | 9 | ismute=$(pulsemixer --toggle-mute --get-mute) |
| 7 | 10 | ||
| @@ -11,4 +14,5 @@ else | |||
| 11 | m="unmuted" | 14 | m="unmuted" |
| 12 | fi | 15 | fi |
| 13 | 16 | ||
| 14 | notify-send "Audio $m" | 17 | pkill herbe # comment this line too if not using herbe |
| 18 | $notify "Audio $m" | ||
