1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-23 00:40:58 +02:00
dotfiles/.bin/rofi_set_default_sink.sh

12 lines
202 B
Bash
Raw Normal View History

2020-11-18 20:40:09 +02:00
#!/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