aboutsummaryrefslogtreecommitdiff
path: root/togglemute
diff options
context:
space:
mode:
Diffstat (limited to 'togglemute')
-rwxr-xr-xtogglemute8
1 files changed, 6 insertions, 2 deletions
diff --git a/togglemute b/togglemute
index d952676..b799b02 100755
--- a/togglemute
+++ b/togglemute
@@ -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
7notify=herbe
5 8
6ismute=$(pulsemixer --toggle-mute --get-mute) 9ismute=$(pulsemixer --toggle-mute --get-mute)
7 10
@@ -11,4 +14,5 @@ else
11 m="unmuted" 14 m="unmuted"
12fi 15fi
13 16
14notify-send "Audio $m" 17pkill herbe # comment this line too if not using herbe
18$notify "Audio $m"

Generated with cgit - Back to sebastiano.tronto.net