summaryrefslogtreecommitdiffstats
path: root/.bin/ag-audio
diff options
context:
space:
mode:
Diffstat (limited to '.bin/ag-audio')
-rwxr-xr-x.bin/ag-audio10
1 files changed, 6 insertions, 4 deletions
diff --git a/.bin/ag-audio b/.bin/ag-audio
index c39fd61..31b0fc3 100755
--- a/.bin/ag-audio
+++ b/.bin/ag-audio
@@ -10,14 +10,10 @@ __decrease() {
__mic_toggle() {
pactl set-source-mute @DEFAULT_SOURCE@ toggle
- pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1
- echo "${?}" > /sys/class/leds/platform::micmute/brightness
}
__toggle() {
pactl set-sink-mute @DEFAULT_SINK@ toggle
- pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1
- echo "${?}" > /sys/class/leds/platform::mute/brightness
}
__next() {
@@ -56,4 +52,10 @@ case "${1}" in
;;
esac
+pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1
+echo "${?}" > /sys/class/leds/platform::micmute/brightness
+
+pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1
+echo "${?}" > /sys/class/leds/platform::mute/brightness
+
ag-status &>/dev/null
remember that computers suck.