I38/scripts/mute-unmute.sh

9 lines
128 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