From 18368532af68f71450ebbb6fd6b5c5e95754e84d Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 6 Aug 2020 22:12:25 +0300 Subject: show bemenu menus in all monitors --- dotfiles/.local/bin/menudisplay | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dotfiles/.local/bin/menudisplay') diff --git a/dotfiles/.local/bin/menudisplay b/dotfiles/.local/bin/menudisplay index 1dd3c2f..e42ec42 100755 --- a/dotfiles/.local/bin/menudisplay +++ b/dotfiles/.local/bin/menudisplay @@ -3,12 +3,12 @@ # Source settings from .bemenurc . ~/.config/bemenurc -display=$(swaymsg -t get_outputs | grep -E "name" | sed "s/^.*\"name\": \"//g;s/\",$//g;" | bemenu -p "Select 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") +display=$(swaymsg -t get_outputs | grep -E "name" | sed "s/^.*\"name\": \"//g;s/\",$//g;" | bemenu -p "Select 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") if [ -z $display ]; then exit 0 fi -action=$(printf "enable\ndisable\n" | bemenu -p "Choose action: " --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB") +action=$(printf "enable\ndisable\n" | bemenu -p "Choose action: " --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") swaymsg output $display $action -- cgit v1.2.3