![]() Notify-send -i audio-card "Sound output switched" "$line"Įxecute the following command to change permissions for the script: sudo chmod 755 /usr/local/bin/audio-device-switch.sh Pacmd list-sinks | sed -n -e 's/scription]=]"\(.*\)"/\1/p' | while read line Pacmd "move-sink-input $app $next_sink_index" ![]() Sinks_activity=($(pacmd list-sinks | grep index | \Īwk '"įor app in $(pacmd list-sink-inputs | sed -n -e 's/index:]\(]\)/\1/p') Sinks_indices=($(pacmd list-sinks | grep index | \ This was done with the following script: #!/usr/bin/env bash I have 3 sound devices (that output sound), so earlier I had a script for switching cyclically between 2 of them (the third, with index 0, is no interest to me, so I always skip it). But it's too inconvenient, in my opinion. Of all the options listed here (and in linked answers), only the one with pavucontrol gives any effect in my case.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |