Created
September 6, 2019 02:17
-
-
Save amenpunk/6756012fdb147ff358dd108ddd8c042a to your computer and use it in GitHub Desktop.
script para subir el volumen en multiples tarjetas de audio a la vez
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
op=$1 | |
#Este es el número de tu tarjeta | |
#en mi caso la 0 es la interna | |
#la numero dos es el bluez | |
#puedes identificarla con el comando | |
#pactl list | |
tar=0 | |
tartwo=1 | |
exec pactl set-sink-volume $tartwo $op | |
#exec (pactl set-sink-volume '$tartwo $op') | |
if [ $1 == 3 ] | |
then | |
exec (pactl set-sink-mute $tartwo toggle) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment