From b1ddc870457d998d08938af6b6dcced357d56278 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 11 Mar 2023 15:14:30 +0530 Subject: menu: prioritize wayland even when xwayland is available --- yts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yts') 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 -- cgit v1.2.3