mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-10 03:30:59 +02:00
12 lines
202 B
Bash
12 lines
202 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
SELECTED=$(pactl list short sinks |\
|
||
|
awk '{print $1 " " $2 " " $7}' |\
|
||
|
column -t |\
|
||
|
sort -k3 -r |\
|
||
|
rofi -dmenu -i |\
|
||
|
awk '{print $2}'
|
||
|
)
|
||
|
echo $SELECTED
|
||
|
pactl set-default-sink $SELECTED
|