This file contains hidden or 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
| #!/usr/bin/env bash | |
| # | |
| # Switches the current default audio sink to the next available sink using pactl. | |
| # Get all sinks via pactl | |
| sinks=$(pactl list short sinks | cut -f 2) | |
| # Get current default sink | |
| current_sink=$(pactl info | grep "Default Sink" | cut -d ' ' -f 3) |