added app context menu for feh and sxiv (image viewers)
Signed-off-by: Miles Alan <m@milesalan.com>
This commit is contained in:
parent
5c4c6c15e2
commit
d4cb102c85
1 changed files with 31 additions and 0 deletions
|
@ -92,6 +92,37 @@ programchoicesinit() {
|
||||||
Seek Info ^ 1 ^ key o
|
Seek Info ^ 1 ^ key o
|
||||||
"
|
"
|
||||||
WINNAME=Mpv && return
|
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
|
elif echo "$WMCLASS" | grep -i "st-256color"; then
|
||||||
# St
|
# St
|
||||||
STSELMODEON="$(
|
STSELMODEON="$(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue