diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-07-05 08:04:43 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-07-05 08:04:43 +0300 |
commit | 0f22fcc301420ebec1d1313d1ff803311206afed (patch) | |
tree | 7c83edcfa0609192546a5addfd50296b1e270ea6 /dotfiles/.local/bin/menurun | |
parent | f02c65fd9b52293076998ccfcbba4924f678bd79 (diff) | |
download | swayrice-0f22fcc301420ebec1d1313d1ff803311206afed.tar.gz swayrice-0f22fcc301420ebec1d1313d1ff803311206afed.zip |
sway shortcut changes
Diffstat (limited to 'dotfiles/.local/bin/menurun')
-rwxr-xr-x | dotfiles/.local/bin/menurun | 16 |
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 |