scripts/toggle_mute.sh

10 lines
223 B
Bash
Raw Normal View History

2020-05-26 08:31:18 +02:00
#!/bin/bash
pulsemixer --toggle-mute
muted=$(amixer -D pulse get Master | awk -F'[][]' 'END{ print $4}')
if [ "on" == "$muted" ]
then
notify-send "Sound is now toggled on"
else
notify-send "Sound is now toggled off"
fi