aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menudisplay
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-06 22:12:25 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-06 22:12:25 +0300
commit18368532af68f71450ebbb6fd6b5c5e95754e84d (patch)
treed8e6c86258eafdfc0ea2dad48d2f2b9f79cf9730 /dotfiles/.local/bin/menudisplay
parent079ed4cfdc7eeca14dbacd16da6f533e455a2396 (diff)
downloadswayrice-18368532af68f71450ebbb6fd6b5c5e95754e84d.tar.gz
swayrice-18368532af68f71450ebbb6fd6b5c5e95754e84d.zip
show bemenu menus in all monitors
Diffstat (limited to 'dotfiles/.local/bin/menudisplay')
-rwxr-xr-xdotfiles/.local/bin/menudisplay4
1 files changed, 2 insertions, 2 deletions
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