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
#!/bin/bash | |
# Author: Jan Keith Darunday <[email protected]> | |
# Description: A shell script that switches to the next available Pulseaudio output device/sink | |
# Note: This uses pactl instead of pacmd since pacmd is not available in pipewire | |
function get_current_sink() { | |
pactl info | sed -En 's/Default Sink: (.*)/\1/p' | |
} | |
SINKS=$(pactl list short sinks | grep -v easyeffects) |