diff options
Diffstat (limited to '.bin/ag-audio')
-rwxr-xr-x | .bin/ag-audio | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.bin/ag-audio b/.bin/ag-audio index f39522f..c39fd61 100755 --- a/.bin/ag-audio +++ b/.bin/ag-audio @@ -1,19 +1,23 @@ #!/bin/sh __increase() { - pamixer -i "${1:-10}" + pactl set-sink-volume @DEFAULT_SINK@ "+${1:-10}%" } __decrease() { - pamixer -d "${1:-10}" + pactl set-sink-volume @DEFAULT_SINK@ "-${1:-10}%" } __mic_toggle() { - pamixer --default-source -t + 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() { - pamixer -t + 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() { |