aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/menuxrun
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/.scripts/menuxrun
parentdc05e567e3d548f82c4d00c60c7eb60c93bb1183 (diff)
downloadswayrice-0367948c02b1d3053eaf430a0d37f9e8248d523c.tar.gz
swayrice-0367948c02b1d3053eaf430a0d37f9e8248d523c.zip
bemenu script to force run apps through xwayland
Diffstat (limited to 'dotfiles/.scripts/menuxrun')
-rwxr-xr-xdotfiles/.scripts/menuxrun7
1 files changed, 7 insertions, 0 deletions
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