aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-11 15:14:30 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-11 19:05:05 +0530
commitb1ddc870457d998d08938af6b6dcced357d56278 (patch)
treec01612eff48f4ad656e47b8f167f9996053062ae
parent246d9473584277981586021a22087b115c78ef19 (diff)
menu: prioritize wayland even when xwayland is available
-rwxr-xr-x1337x6
-rwxr-xr-xdamb6
-rwxr-xr-xpirowatch6
-rwxr-xr-xyts6
4 files changed, 12 insertions, 12 deletions
diff --git a/1337x b/1337x
index a1d5bc3..04254a7 100755
--- a/1337x
+++ b/1337x
@@ -2,7 +2,7 @@
url_1337x="https://1337x.to"
proxy_1337x="https://1337x.torrentbay.to"
-menu="dmenu"
+menu="wmenu"
die()
{
@@ -59,8 +59,8 @@ main()
out=
query=
- [ -z "$DISPLAY" ] &&
- menu="wmenu"
+ [ -z "$WAYLAND_DISPLAY" ] &&
+ menu="dmenu"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
out=true
diff --git a/damb b/damb
index 4425ae7..66a8cb6 100755
--- a/damb
+++ b/damb
@@ -4,7 +4,7 @@
amb_dir="$HOME/.local/share/damb"
pid_file="/tmp/damb.pid"
config_dir="$HOME/.config/damb"
-menu="dmenu"
+menu="wmenu"
die()
{
@@ -48,8 +48,8 @@ get_link()
main()
{
- [ -z "$DISPLAY" ] &&
- menu="wmenu"
+ [ -z "$WAYLAND_DISPLAY" ] &&
+ menu="dmenu"
dep_check "$menu"
diff --git a/pirowatch b/pirowatch
index 4ed54ce..d5e7d0d 100755
--- a/pirowatch
+++ b/pirowatch
@@ -6,7 +6,7 @@ cache_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/pirowatch"
torrent_dir="${DOWNLOADS:-$HOME/Downloads}"
torrent_port=49110
dht_port=49130
-menu="dmenu"
+menu="wmenu"
die()
{
@@ -82,8 +82,8 @@ main()
index=
shift
fi
- [ -z "$DISPLAY" ] &&
- menu="wmenu"
+ [ -z "$WAYLAND_DISPLAY" ] &&
+ menu="dmenu"
dep_check "$menu"
diff --git a/yts b/yts
index 7401761..079c628 100755
--- a/yts
+++ b/yts
@@ -2,7 +2,7 @@
url_yts="https://yts.mx"
proxy_yts="https://yts.torrentbay.to"
-menu="dmenu"
+menu="wmenu"
die()
{
@@ -69,8 +69,8 @@ main()
out=
query=
- [ -z "$DISPLAY" ] &&
- menu="wmenu"
+ [ -z "$WAYLAND_DISPLAY" ] &&
+ menu="dmenu"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
out=true