From 0367948c02b1d3053eaf430a0d37f9e8248d523c Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Mon, 9 Dec 2019 04:00:54 +0300 Subject: bemenu script to force run apps through xwayland --- dotfiles/.config/sway/config | 3 +++ dotfiles/.scripts/menurun | 6 +++--- dotfiles/.scripts/menuxrun | 7 +++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 dotfiles/.scripts/menuxrun (limited to 'dotfiles') diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 5289280..89f068e 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -147,6 +147,8 @@ bindsym --to-code { # start program launcher $mod+d exec --no-startup-id menurun + # start program launcher (force through XWayland) + $mod+Ctrl+d exec --no-startup-id menuxrun # Mako (notifications) $mod+Ctrl+space exec "makoctl dismiss" @@ -172,6 +174,7 @@ bindsym --to-code { # Start Applications $mod+Shift+w exec --no-startup-id $browser + $mod+F2 exec menumako $mod+F3 exec menudisplay $mod+F4 exec menublk $mod+r exec kitty -e ranger diff --git a/dotfiles/.scripts/menurun b/dotfiles/.scripts/menurun index 744d420..a3fc82d 100755 --- a/dotfiles/.scripts/menurun +++ b/dotfiles/.scripts/menurun @@ -3,7 +3,7 @@ # Source settings from .bemenurc . $HOME/.bemenurc -#action=$(compgen -c | sort -u | bemenu -p "Run:" $BEMENU_OPTIONS) -#$action +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 -bemenu-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" +#bemenu-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" diff --git a/dotfiles/.scripts/menuxrun b/dotfiles/.scripts/menuxrun new file mode 100755 index 0000000..7ce556e --- /dev/null +++ b/dotfiles/.scripts/menuxrun @@ -0,0 +1,7 @@ +#!/bin/sh + +# Source settings from .bemenurc +. $HOME/.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 -- cgit v1.2.3