forked from colonelpanic/dotfiles
[Linux] Add rofi_select_input.sh
This commit is contained in:
parent
dda42e66c7
commit
de0671026a
9
dotfiles/lib/bin/rofi_select_input.sh
Executable file
9
dotfiles/lib/bin/rofi_select_input.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
inputs=$(pactl list sink-inputs | grep 'Sink Input' | grep -Eo '[0-9]*')
|
||||||
|
selection=$(echo "$inputs" | rofi -dmenu -i)
|
||||||
|
|
||||||
|
echo "$inputs" | xargs -I {} -n1 pactl set-sink-input-mute {} 1
|
||||||
|
|
||||||
|
pactl set-sink-input-mute "$selection" 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user