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 /togglemute | |
| parent | 547311be5f6d90f36022a6e5e6fdbfb26862fd75 (diff) | |
| download | scripts-6f45972265b532365421658f1370742bb82b757b.tar.gz scripts-6f45972265b532365421658f1370742bb82b757b.zip | |
Changed default notification system to herbe
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" | ||
