I38/scripts/mute-unmute.sh

10 lines
205 B
Bash
Raw Permalink Normal View History

#!/bin/bash
if [ $(pamixer --get-mute) = false ]; then
2022-11-30 11:39:06 -05:00
spd-say -P important -Cw 'Muting!'
pamixer -t
else
2022-11-30 11:39:06 -05:00
pamixer -t
play -qnG synth 0.05 sin 440
spd-say -P important -Cw 'Unmuted!'
fi