aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-12-09 04:00:54 +0300
committerYaroslav <contact@yaroslavps.com>2019-12-09 04:00:54 +0300
commit0367948c02b1d3053eaf430a0d37f9e8248d523c (patch)
treedcff56f2fd8a124674f623c85037feafd30549c4 /dotfiles
parentdc05e567e3d548f82c4d00c60c7eb60c93bb1183 (diff)
downloadswayrice-0367948c02b1d3053eaf430a0d37f9e8248d523c.tar.gz
swayrice-0367948c02b1d3053eaf430a0d37f9e8248d523c.zip
bemenu script to force run apps through xwayland
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/sway/config3
-rwxr-xr-xdotfiles/.scripts/menurun6
-rwxr-xr-xdotfiles/.scripts/menuxrun7
3 files changed, 13 insertions, 3 deletions
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