-
-
Save yrns/173fdeb942efa5b1b6fb to your computer and use it in GitHub Desktop.
Make the last audio sink the default so the volume buttons work on my keyboard when bluetooth speakers are connected...
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/sh | |
pacmd set-default-sink `pacmd list-sinks | grep index | tail -n 1 | perl -ne 'print "$1\n" if /(\d+)/;'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment