aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-10-02 12:20:56 +0300
committerYaroslav <contact@yaroslavps.com>2019-10-02 12:20:56 +0300
commit4fd756b2f2d1c817b5e22a22d8252e5be7b552cb (patch)
tree4e52ac582c21ec14f3e74b9b1fed6bb4276da761
parent3bc338685625cf491c3d122ad1afd63a5d1ab312 (diff)
downloadswayrice-4fd756b2f2d1c817b5e22a22d8252e5be7b552cb.tar.gz
swayrice-4fd756b2f2d1c817b5e22a22d8252e5be7b552cb.zip
update audio output menu to use bemenu
-rwxr-xr-xdotfiles/.scripts/menuoutput9
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