From 4fd756b2f2d1c817b5e22a22d8252e5be7b552cb Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 2 Oct 2019 12:20:56 +0300 Subject: update audio output menu to use bemenu --- dotfiles/.scripts/menuoutput | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dotfiles/.scripts') 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 -- cgit v1.2.3