diff --git a/dotfiles/lib/bin/rofi_select_input.sh b/dotfiles/lib/bin/rofi_select_input.sh new file mode 100755 index 00000000..09604839 --- /dev/null +++ b/dotfiles/lib/bin/rofi_select_input.sh @@ -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 +