blob: 60023a934d2453e8bc7f3c0a4e6b8e5ff6577b70 (
plain) (
tree)
|
|
#! /bin/sh
# toggle mic mute and send notification about current state
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
command -v notify-send > /dev/null || exit
case "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)" in
*\[MUTED\])
notify-send " muted" "microphone is muted"
;;
*)
notify-send " unmuted" "microphone is unmuted"
;;
esac
|