From d4cb102c85aa823716c925245257984d1ddcd9de Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Fri, 17 Jul 2020 18:09:54 +0200 Subject: [PATCH] added app context menu for feh and sxiv (image viewers) Signed-off-by: Miles Alan --- scripts/core/sxmo_appmenu.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index 7c93c6e..6f87ba3 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -92,6 +92,37 @@ programchoicesinit() { Seek Info ^ 1 ^ key o " WINNAME=Mpv && return + elif echo "$WMCLASS" | grep -i "feh"; then + # Feh + CHOICES=" + Next → ^ 1 ^ key space + Previous ← ^ 1 ^ key BackSpace + Zoom + ^ 1 ^ key up + Zoom - ^ 1 ^ key down + Zoom to fit ^ 1 ^ key slash + Zoom to fill ^ 1 ^ key exlam + Rotate ↺ ^ 1 ^ key less + Rotate ↻ ^ 1 ^ key greater + Flip ⇅ ^ 1 ^ key underscore + Mirror ⇄ ^ 1 ^ key bar + Toggle filename ^ 1 ^ key d + Exit ^ 0 ^ key q + " + WINNAME=Feh && return + elif echo "$WMCLASS" | grep -i "sxiv"; then + # Sxiv + CHOICES=" + Next → ^ 1 ^ key space + Previous ← ^ 1 ^ key BackSpace + Zoom + ^ 1 ^ key equal + Zoom - ^ 1 ^ key minus + Rotate ↺ ^ 1 ^ key less + Rotate ↻ ^ 1 ^ key greater + Flip ⇄ ^ 1 ^ key question + Flip ⇅ ^ 1 ^ key bar + Exit ^ 0 ^ key q + " + WINNAME=Sxiv && return elif echo "$WMCLASS" | grep -i "st-256color"; then # St STSELMODEON="$(