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

12 lines
202 B
Bash
Executable File

#!/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