@@ -45,13 +45,13 @@ Use the following keys to control sxiv: | |||||
q Quit sxiv | q Quit sxiv | ||||
Escape Quit sxiv and return an exit value of 2 (useful for scripting) | Escape Quit sxiv and return an exit value of 2 (useful for scripting) | ||||
Space,n Go to the next image | |||||
Backspace,p Go to the previous image | |||||
n,Space Go to the next image | |||||
p,Backspace Go to the previous image | |||||
g/G Go to first/last image | g/G Go to first/last image | ||||
[/] Go 10 images backward/forward | [/] Go 10 images backward/forward | ||||
+,= Zoom in | +,= Zoom in | ||||
- Zoom out | - Zoom out | ||||
h,j,k,l Pan image left/down/up/right | |||||
h,j,k,l Pan image left/down/up/right (also with arrow keys) | |||||
<,> Rotate image (counter-)clockwise by 90 degrees | <,> Rotate image (counter-)clockwise by 90 degrees | ||||
f Toggle fullscreen mode (requires an EWMH/NetWM compliant | f Toggle fullscreen mode (requires an EWMH/NetWM compliant | ||||
window manager) | window manager) | ||||
@@ -149,6 +149,18 @@ void on_keypress(XEvent *ev) { | |||||
case XK_BackSpace: | case XK_BackSpace: | ||||
key = 'p'; | key = 'p'; | ||||
break; | break; | ||||
case XK_Left: | |||||
key = 'h'; | |||||
break; | |||||
case XK_Down: | |||||
key = 'j'; | |||||
break; | |||||
case XK_Up: | |||||
key = 'k'; | |||||
break; | |||||
case XK_Right: | |||||
key = 'l'; | |||||
break; | |||||
} | } | ||||
switch (key) { | switch (key) { | ||||
@@ -63,10 +63,10 @@ Quit sxiv. | |||||
Quit sxiv and return an exit value of 2. | Quit sxiv and return an exit value of 2. | ||||
.SS Navigate image list | .SS Navigate image list | ||||
.TP | .TP | ||||
.BR Space ", " n | |||||
.BR n ", " Space | |||||
Go to the next image. | Go to the next image. | ||||
.TP | .TP | ||||
.BR Backspace ", " p | |||||
.BR p ", " Backspace | |||||
Go to the previous image. | Go to the previous image. | ||||
.TP | .TP | ||||
.B g | .B g | ||||
@@ -89,16 +89,16 @@ Zoom in. | |||||
Zoom out. | Zoom out. | ||||
.SS Panning | .SS Panning | ||||
.TP | .TP | ||||
.B h | |||||
.BR h ", " Left | |||||
Pan left. | Pan left. | ||||
.TP | .TP | ||||
.B j | |||||
.BR j ", " Down | |||||
Pan down. | Pan down. | ||||
.TP | .TP | ||||
.B k | |||||
.BR k ", " Up | |||||
Pan up. | Pan up. | ||||
.TP | .TP | ||||
.B l | |||||
.BR l ", " Right | |||||
Pan right. | Pan right. | ||||
.SS Rotation | .SS Rotation | ||||
.TP | .TP | ||||