aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menurun
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin/menurun')
-rwxr-xr-xdotfiles/.local/bin/menurun16
1 files changed, 14 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/menurun b/dotfiles/.local/bin/menurun
index 7ee05d7..b3da2a0 100755
--- a/dotfiles/.local/bin/menurun
+++ b/dotfiles/.local/bin/menurun
@@ -3,6 +3,18 @@
# Source settings from .bemenurc
. ~/.config/bemenurc
-action=$(compgen -c | sort -u | bemenu -p "Run:" --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
+title="Run:"
+action=""
+
+case $1 in
+ -x)
+ action="xway"
+ title="Run through xwayland:";;
+ -t)
+ action="$TERMINAL -e"
+ title="Run in terminal:";;
+esac
+action="$action $(compgen -c | sort -u | bemenu -p "$title" --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