aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menuoutput
blob: b9a4faa6538a902e10481e7f5e26f7641b8b9951 (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" --monitor="$BEMENU_MONITOR")

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

changeoutput $output

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