mirror of
https://github.com/artizirk/dotfiles.git
synced 2026-01-10 09:54:22 +02:00
Add pulse output selector
This commit is contained in:
11
.bin/rofi_set_default_sink.sh
Executable file
11
.bin/rofi_set_default_sink.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user