aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/menuoutput
blob: d11d72274a3c0b14713d9ce7931d0f03bee847c6 (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
. $HOME/.bemenurc

output=$(listsinks | bemenu -p "Select audio output: " $BEMENU_OPTIONS)

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

changeoutput $output

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