|
|
@@ -42,6 +42,40 @@
|
|
|
'';
|
|
|
executable = true;
|
|
|
};
|
|
|
+ mic-mute = {
|
|
|
+ target = ".config/waybar/mic-mute.sh";
|
|
|
+ text = ''
|
|
|
+ #!/usr/bin/env bash
|
|
|
+
|
|
|
+ # Toggle mute
|
|
|
+ amixer set 'Capture' toggle
|
|
|
+
|
|
|
+ # Check new state
|
|
|
+ if amixer get Capture | grep -q '\[off\]'; then
|
|
|
+ notify-send "Microphone Muted" "Your mic has been muted." -i microphone-sensitivity-muted-symbolic
|
|
|
+ else
|
|
|
+ notify-send "Microphone Unmuted" "Your mic is live." -i microphone-sensitivity-high-symbolic
|
|
|
+ fi
|
|
|
+ '';
|
|
|
+ executable = true;
|
|
|
+ };
|
|
|
+ output-mute = {
|
|
|
+ target = ".config/waybar/output-mute.sh";
|
|
|
+ text = ''
|
|
|
+ #!/usr/bin/env bash
|
|
|
+
|
|
|
+ # Toggle mute
|
|
|
+ amixer set 'Master' toggle
|
|
|
+
|
|
|
+ # Check new state
|
|
|
+ if amixer get Master | grep -q '\[off\]'; then
|
|
|
+ notify-send "Master Muted" "You may no longer hear." -i audio-volume-muted-symbolic
|
|
|
+ else
|
|
|
+ notify-send "Master Unmuted" "You may hear now." -i audio-volume-high-symbolic
|
|
|
+ fi
|
|
|
+ '';
|
|
|
+ executable = true;
|
|
|
+ };
|
|
|
};
|
|
|
};
|
|
|
}
|