summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-07-05 09:10:19 +0530
committersinanmohd <sinan@firemail.cc>2023-07-05 10:39:01 +0530
commit02e9f4d66f45bfa895a17ea821504c1e4f9d7ccd (patch)
tree33421a488e75d19aea16867d8b2ff7c54e0edc2b
parentfd53e43b5833dd076230f18d0aff58d9ca542b8b (diff)
mutemic: proper spacing in notify-send
-rwxr-xr-x.local/bin/audio_mutemic6
1 files changed, 2 insertions, 4 deletions
diff --git a/.local/bin/audio_mutemic b/.local/bin/audio_mutemic
index 60023a9..b622b62 100755
--- a/.local/bin/audio_mutemic
+++ b/.local/bin/audio_mutemic
@@ -1,15 +1,13 @@
#! /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 " muted" "microphone is muted"
;;
*)
- notify-send " unmuted" "microphone is unmuted"
+ notify-send " unmuted" "microphone is active"
;;
esac