Added man page
This commit is contained in:
parent
bce599038c
commit
d3da0eb71e
3
Makefile
3
Makefile
@ -19,6 +19,9 @@ sxiv: $(OBJFILES)
|
|||||||
|
|
||||||
install: all
|
install: all
|
||||||
install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv
|
install -D -m 4755 -o root -g root sxiv $(PREFIX)/sbin/sxiv
|
||||||
|
mkdir -p $(PREFIX)/share/man/man1
|
||||||
|
sed "s/VERSION/$(VERSION)/g" dwm.1 > $(PREFIX)/share/man/man1/sxiv.1
|
||||||
|
chmod 644 $(PREFIX)/share/man/man1/sxiv.1
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f sxiv *.o
|
rm -f sxiv *.o
|
||||||
|
1
TODO
1
TODO
@ -1,5 +1,4 @@
|
|||||||
- mouse scrolling and zooming
|
- mouse scrolling and zooming
|
||||||
- add some useful command line options
|
- add some useful command line options
|
||||||
- write man page
|
|
||||||
- toggle aliasing
|
- toggle aliasing
|
||||||
- view all images in directories (recursive mode)
|
- view all images in directories (recursive mode)
|
||||||
|
4
main.c
4
main.c
@ -154,7 +154,7 @@ void on_keypress(XEvent *ev) {
|
|||||||
cleanup();
|
cleanup();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
/* navigate through image list */
|
/* navigate image list */
|
||||||
case 'n':
|
case 'n':
|
||||||
if (fileidx + 1 < filecnt) {
|
if (fileidx + 1 < filecnt) {
|
||||||
img_load(&img, filenames[++fileidx]);
|
img_load(&img, filenames[++fileidx]);
|
||||||
@ -219,7 +219,7 @@ void on_keypress(XEvent *ev) {
|
|||||||
changed = img_pan(&img, &win, PAN_RIGHT);
|
changed = img_pan(&img, &win, PAN_RIGHT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* change window state */
|
/* Control window */
|
||||||
case 'f':
|
case 'f':
|
||||||
win_toggle_fullscreen(&win);
|
win_toggle_fullscreen(&win);
|
||||||
break;
|
break;
|
||||||
|
79
sxiv.1
Normal file
79
sxiv.1
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
.TH SXIV 1 sxiv\-VERSION
|
||||||
|
.SH NAME
|
||||||
|
sxiv \- Simple (or small or suckless) X Image Viewer
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B sxiv
|
||||||
|
.RB [ \-hv ]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
sxiv is a simple image viewer for X. It only has the most basic features
|
||||||
|
required for fast image viewing.
|
||||||
|
.P
|
||||||
|
Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
|
||||||
|
manager.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-h
|
||||||
|
Print brief usage information to standard output and exit.
|
||||||
|
.TP
|
||||||
|
.B \-v
|
||||||
|
Print version information to standard output and exit.
|
||||||
|
.SH KEYBOARD COMMANDS
|
||||||
|
.SS General
|
||||||
|
.TP
|
||||||
|
.B q
|
||||||
|
Quit sxiv.
|
||||||
|
.TP
|
||||||
|
.B Escape
|
||||||
|
Quit sxiv and return an exit value of 2.
|
||||||
|
.SS Navigate image list
|
||||||
|
.TP
|
||||||
|
.BR Space ", " n
|
||||||
|
Go to the next image.
|
||||||
|
.TP
|
||||||
|
.BR Backspace ", " p
|
||||||
|
Go to the previous image.
|
||||||
|
.TP
|
||||||
|
.B g
|
||||||
|
Go to the first image.
|
||||||
|
.TP
|
||||||
|
.B G
|
||||||
|
Go to the last image.
|
||||||
|
.TP
|
||||||
|
.B [
|
||||||
|
Go 10 images backward.
|
||||||
|
.TP
|
||||||
|
.B ]
|
||||||
|
Go 10 images forward.
|
||||||
|
.SS Zooming
|
||||||
|
.TP
|
||||||
|
.BR + ", " =
|
||||||
|
Zoom in.
|
||||||
|
.TP
|
||||||
|
.B \-
|
||||||
|
Zoom out.
|
||||||
|
.SS Panning
|
||||||
|
.TP
|
||||||
|
.B h
|
||||||
|
Pan left.
|
||||||
|
.TP
|
||||||
|
.B j
|
||||||
|
Pan down.
|
||||||
|
.TP
|
||||||
|
.B k
|
||||||
|
Pan up.
|
||||||
|
.TP
|
||||||
|
.B l
|
||||||
|
Pan right.
|
||||||
|
.SS Control window
|
||||||
|
.TP
|
||||||
|
.B f
|
||||||
|
Toggle fullscreen mode.
|
||||||
|
.SH AUTHORS
|
||||||
|
.TP
|
||||||
|
Bert Muennich <ber.t at gmx.com>
|
||||||
|
.SH MISC
|
||||||
|
.SS Homepage
|
||||||
|
.TP
|
||||||
|
http://github.com/muennich/sxiv
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR feh (1), qiv (1)
|
Loading…
Reference in New Issue
Block a user