From fbaa9155bc1f0ad518ad8fe3d586dcd24a4c3500 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 24 Aug 2021 13:06:17 +0200 Subject: [PATCH] Display the idle entry menu only in sway --- scripts/core/sxmo_appmenu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index be0c15b..c6e220d 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -24,6 +24,8 @@ sxmo_type() { sxmo_type.sh -s 200 "$@" # dunno why this is necessary but it sucks without } +wm="$(sxmo_wm.sh)" + programchoicesinit() { XPROPOUT="$(sxmo_wm.sh focusedwindow)" WMCLASS="${1:-$(printf %s "$XPROPOUT" | grep app: | cut -d" " -f2- | tr '[:upper:]' '[:lower:]')}" @@ -156,7 +158,7 @@ programchoicesinit() { printf %b "Off → On" || printf %b "On → Off"; printf %b "^ 1 ^ sxmo_flashtoggle.sh" ) - $icon_cfg Idle Config ^ 1 ^ sxmo_idle.sh config + $([ "$wm" = sway ] && printf "$icon_cfg Idle Config ^ 1 ^ sxmo_idle.sh config") $icon_cfg Invert Colors ^ 1 ^ xcalib -a -invert $icon_clk Change Timezone ^ 1 ^ sxmo_timezonechange.sh $icon_ror Autorotate $(