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/python3 | |
import sys | |
import subprocess | |
""" | |
Wireplumber sink/source switcher | |
It lets you pass your sinks/sources into a dmenu dropdown | |
for ease of access |
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
wpctl status -n | grep $1 | awk '/vol/{print$2$3$4}' | sed 's/\*//' | sed 's/.alsa.*//' | xargs -I {} wpctl set-default {} |