aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuoutput
blob: 0efc94823ed3f3e63acbd1532afbafe0fc309d82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Change audio output for all streams and set as default using dmenu

# Source settings from .bemenurc
. ~/.config/bemenurc

output=$(listsinks | bemenu -p "Select audio output: " --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB")

[ "$output" != "" ] || exit

changeoutput $output

notify-send "🔉 Audio output switched" "Audio output switched to '$output'"