diff options
author | Yaroslav <contact@yaroslavps.com> | 2019-10-02 12:20:56 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2019-10-02 12:20:56 +0300 |
commit | 4fd756b2f2d1c817b5e22a22d8252e5be7b552cb (patch) | |
tree | 4e52ac582c21ec14f3e74b9b1fed6bb4276da761 | |
parent | 3bc338685625cf491c3d122ad1afd63a5d1ab312 (diff) | |
download | swayrice-4fd756b2f2d1c817b5e22a22d8252e5be7b552cb.tar.gz swayrice-4fd756b2f2d1c817b5e22a22d8252e5be7b552cb.zip |
update audio output menu to use bemenu
-rwxr-xr-x | dotfiles/.scripts/menuoutput | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/dotfiles/.scripts/menuoutput b/dotfiles/.scripts/menuoutput index e714305..d11d722 100755 --- a/dotfiles/.scripts/menuoutput +++ b/dotfiles/.scripts/menuoutput @@ -1,13 +1,10 @@ #!/bin/sh # Change audio output for all streams and set as default using dmenu -# Source settings from .dmenurc -if ! [ -f "$HOME/.dmenurc" ]; then - cp /usr/share/dmenu/dmenurc $HOME/.dmenurc -fi -. $HOME/.dmenurc +# Source settings from .bemenurc +. $HOME/.bemenurc -output=$(listsinks | dmenu -i $DMENU_OPTIONS) +output=$(listsinks | bemenu -p "Select audio output: " $BEMENU_OPTIONS) [ "$output" != "" ] || exit |