diff options
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-x | dotfiles/.local/bin/menurun | 16 | ||||
-rwxr-xr-x | dotfiles/.local/bin/menuxrun | 7 |
2 files changed, 14 insertions, 9 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 diff --git a/dotfiles/.local/bin/menuxrun b/dotfiles/.local/bin/menuxrun deleted file mode 100755 index fd7f797..0000000 --- a/dotfiles/.local/bin/menuxrun +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Source settings from .bemenurc -. ~/.config/bemenurc - -action=$(compgen -c | sort -u | bemenu -p "Force run inside XWayland:" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB") -xway $action |