Skip to content

Instantly share code, notes, and snippets.

@amenpunk
Created September 6, 2019 02:17
Show Gist options
  • Save amenpunk/6756012fdb147ff358dd108ddd8c042a to your computer and use it in GitHub Desktop.
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
#!/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