From acc0b51e1acd6c6c127d4c39a84394c2e094485e Mon Sep 17 00:00:00 2001 From: Makise Kurisu Date: Fri, 3 Apr 2015 18:57:21 +0200 Subject: [PATCH] Added mute/unmute microphone shortcut --- mute_unmute_microphone.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mute_unmute_microphone.sh diff --git a/mute_unmute_microphone.sh b/mute_unmute_microphone.sh new file mode 100644 index 0000000..ac5d2ec --- /dev/null +++ b/mute_unmute_microphone.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Copy this directly into the gnome shortcut manager. +# Depends: alsa-utils +# +# Name: Mute/Unmute Microphone + +bash -c "notify-send \"Microphone\" \"The microphone is now `amixer set Capture toggle | grep \"Front\" | tail -n 1 | sed -e 's/.*\[\(.*\)\]/\1/'`.\" +--hint int:transient:1 --icon=file:///usr/share/icons/Adwaita/scalable/devices/audio-input-microphone-symbolic.svg"