I38/scripts/mute-unmute.sh

10 lines
185 B
Bash
Raw Normal View History

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