mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-16 22:20: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
|