mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
Major Update: created v5 (switching from x11 to wayland). Changed polybar to waybar in this commit.
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
mic=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk '{print $2}')
|
||||
|
||||
if [ "$1" == "toggle" ]; then
|
||||
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
fi
|
||||
|
||||
mic=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk '{print $2}')
|
||||
|
||||
if [ "$mic" == "yes" ]; then
|
||||
echo '{"text":"","class":"mic-muted"}'
|
||||
else
|
||||
echo '{"text":"","class":"mic-unmuted"}'
|
||||
fi
|
||||
Reference in New Issue
Block a user