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 --- pirowatch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pirowatch') 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" -- cgit v1.2.3