diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-02-03 21:31:55 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-02-03 21:31:55 +0100 |
commit | 703ed1915c69911a95cab6e1fb6524629c976800 (patch) | |
tree | 1e4063eeace827aa557e910aa502ee173dd6e4ab /.bin/ag-audio | |
parent | d64d4a6a3924e144fe49b3d956320b37786a738a (diff) | |
download | dots-703ed1915c69911a95cab6e1fb6524629c976800.tar.gz |
Thu Feb 3 09:31:55 PM CET 2022
Diffstat (limited to '.bin/ag-audio')
-rwxr-xr-x | .bin/ag-audio | 10 |
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 |