I38/scripts/mute-unmute.sh

9 lines
130 B
Bash
Executable File

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