I38/scripts/mute-unmute.sh

9 lines
156 B
Bash
Executable File

#!/bin/bash
if [ $(pamixer --get-mute) = false ]; then
spd-say -P important -Cw 'Muting!'
pamixer -t
else
pamixer -t
spd-say -P important -Cw 'Unmuted!'
fi