I38/scripts/mute-unmute.sh

9 lines
130 B
Bash
Raw Normal View History

#!/bin/bash
if [ $(pamixer --get-mute) = false ]; then
2022-11-26 20:25:17 -05:00
spd-say -Cw 'Muting!'
pamixer -t
else
pamixer -t
2022-11-26 20:25:17 -05:00
spd-say -Cw 'Unmuted!'
fi