diff --git a/.config/scripts/bin/toggle-mic-notify b/.config/scripts/bin/toggle-mic-notify new file mode 120000 index 0000000..980ec53 --- /dev/null +++ b/.config/scripts/bin/toggle-mic-notify @@ -0,0 +1 @@ +../wm/toggle-mic-notify \ No newline at end of file diff --git a/.config/scripts/wm/toggle-mic-notify b/.config/scripts/wm/toggle-mic-notify new file mode 100755 index 0000000..7e996e7 --- /dev/null +++ b/.config/scripts/wm/toggle-mic-notify @@ -0,0 +1,6 @@ +#!/bin/sh +amixer set Capture toggle @> /dev/null + +str=$(grep '\[on\]\|\[off\]' <<< $(amixer get Capture) | awk '{print $5}') +echo $str +notify-send "Microphone: $str"