aboutsummaryrefslogtreecommitdiff
path: root/togglemute
blob: b799b024833486c8713fc1dfe13944e7f1d03783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Toggle mute state and notify
# Requires: pulsemixer, notify-send or similar

#notify=notify-send
notify=herbe

ismute=$(pulsemixer --toggle-mute --get-mute)

if [ "$ismute" = "1" ]; then
	m="muted"
else
	m="unmuted"
fi

pkill herbe # comment this line too if not using herbe
$notify "Audio $m"

Generated with cgit - Back to sebastiano.tronto.net