2011-01-23 18:20:08 +01:00
|
|
|
.TH SXIV 1 sxiv\-VERSION
|
|
|
|
.SH NAME
|
2013-01-27 18:03:01 +01:00
|
|
|
sxiv \- Simple X Image Viewer
|
2011-01-23 18:20:08 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B sxiv
|
2014-07-25 22:52:31 +02:00
|
|
|
.RB [ \-abcfhioqrtvZ ]
|
2013-11-14 17:06:20 +01:00
|
|
|
.RB [ \-G
|
|
|
|
.IR GAMMA ]
|
2011-01-30 22:23:36 +01:00
|
|
|
.RB [ \-g
|
|
|
|
.IR GEOMETRY ]
|
2012-10-29 00:53:50 +01:00
|
|
|
.RB [ \-N
|
|
|
|
.IR NAME ]
|
2013-11-14 17:06:20 +01:00
|
|
|
.RB [ \-n
|
|
|
|
.IR NUM ]
|
2014-01-04 18:38:40 +01:00
|
|
|
.RB [ \-S
|
|
|
|
.IR DELAY ]
|
2014-02-04 23:05:29 +01:00
|
|
|
.RB [ \-s
|
|
|
|
.IR MODE ]
|
2011-01-28 13:34:16 +01:00
|
|
|
.RB [ \-z
|
|
|
|
.IR ZOOM ]
|
2011-01-23 19:27:16 +01:00
|
|
|
.IR FILE ...
|
2011-01-23 18:20:08 +01:00
|
|
|
.SH DESCRIPTION
|
|
|
|
sxiv is a simple image viewer for X. It only has the most basic features
|
|
|
|
required for fast image viewing.
|
|
|
|
.P
|
2011-02-21 17:06:32 +01:00
|
|
|
sxiv has two modes of operation: image and thumbnail mode. The default is image
|
|
|
|
mode, in which only the current image is shown. In thumbnail mode a grid of
|
|
|
|
small previews is displayed, making it easy to choose an image to open.
|
|
|
|
.P
|
2011-01-23 18:20:08 +01:00
|
|
|
Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
|
|
|
|
manager.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2014-07-25 22:52:31 +02:00
|
|
|
.B \-a
|
|
|
|
Play animations of multi-frame images.
|
|
|
|
.TP
|
2012-02-16 23:20:27 +01:00
|
|
|
.B \-b
|
|
|
|
Do not show info bar on bottom of window.
|
|
|
|
.TP
|
2011-04-11 21:27:20 +02:00
|
|
|
.B \-c
|
2011-04-08 17:07:25 +02:00
|
|
|
Remove all orphaned cache files from the thumbnail cache directory and exit.
|
|
|
|
.TP
|
2011-01-28 13:34:16 +01:00
|
|
|
.B \-f
|
|
|
|
Start in fullscreen mode.
|
|
|
|
.TP
|
2013-11-14 17:06:20 +01:00
|
|
|
.BI "\-G " GAMMA
|
|
|
|
Set image gamma to GAMMA (-32..32).
|
|
|
|
.TP
|
2011-01-30 22:02:03 +01:00
|
|
|
.BI "\-g " GEOMETRY
|
|
|
|
Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for
|
2014-02-04 23:05:29 +01:00
|
|
|
more information on GEOMETRY argument.
|
2011-01-30 22:02:03 +01:00
|
|
|
.TP
|
2013-11-14 17:06:20 +01:00
|
|
|
.BI "\-N " NAME
|
|
|
|
Set the resource name of sxiv's X window to NAME.
|
2013-11-13 20:54:09 +01:00
|
|
|
.TP
|
2011-05-25 09:23:23 +02:00
|
|
|
.BI "\-n " NUM
|
|
|
|
Start at picture number NUM.
|
|
|
|
.TP
|
2011-01-23 18:20:08 +01:00
|
|
|
.B \-h
|
|
|
|
Print brief usage information to standard output and exit.
|
|
|
|
.TP
|
2013-03-19 21:11:29 +01:00
|
|
|
.B \-i
|
|
|
|
Read names of files to open from standard input.
|
|
|
|
.TP
|
|
|
|
.B \-o
|
2013-08-22 09:44:14 +02:00
|
|
|
Write list of all marked files to standard output when quitting. In combination
|
|
|
|
with
|
2014-02-04 23:05:29 +01:00
|
|
|
.B \-i
|
2013-08-22 09:44:14 +02:00
|
|
|
sxiv can be used as a visual filter/pipe.
|
2013-03-19 21:11:29 +01:00
|
|
|
.TP
|
2011-01-30 22:23:36 +01:00
|
|
|
.B \-q
|
|
|
|
Be quiet, disable warnings to standard error stream.
|
|
|
|
.TP
|
2011-02-02 10:34:14 +01:00
|
|
|
.B \-r
|
|
|
|
Search the given directories recursively for images to view.
|
|
|
|
.TP
|
2014-01-04 18:38:40 +01:00
|
|
|
.BI "\-S " DELAY
|
|
|
|
Start in slideshow mode. Set the delay between images to DELAY seconds.
|
|
|
|
.TP
|
2014-02-04 23:05:29 +01:00
|
|
|
.BI "\-s " MODE
|
|
|
|
Set scale mode according to MODE character. Supported modes are: [d]own,
|
|
|
|
[f]it, [w]idth, [h]eight.
|
2011-01-28 13:34:16 +01:00
|
|
|
.TP
|
2011-02-21 17:06:32 +01:00
|
|
|
.B \-t
|
|
|
|
Start in thumbnail mode.
|
|
|
|
.TP
|
2011-01-23 18:20:08 +01:00
|
|
|
.B \-v
|
|
|
|
Print version information to standard output and exit.
|
2011-01-27 16:15:43 +01:00
|
|
|
.TP
|
2011-01-28 13:34:16 +01:00
|
|
|
.B \-Z
|
2011-08-18 01:19:59 +02:00
|
|
|
The same as `\-z 100'.
|
2011-01-28 13:34:16 +01:00
|
|
|
.TP
|
|
|
|
.BI "\-z " ZOOM
|
2014-02-04 23:03:53 +01:00
|
|
|
Set zoom level to ZOOM percent.
|
2011-10-16 20:33:23 +02:00
|
|
|
.SH GENERAL KEYBOARD COMMANDS
|
|
|
|
The following keyboard commands are available in both image and thumbnail mode:
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2011-10-16 20:33:23 +02:00
|
|
|
.BR 0 \- 9
|
|
|
|
Prefix the next command with a number (denoted via
|
|
|
|
.IR count ).
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B q
|
|
|
|
Quit sxiv.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B Return
|
|
|
|
Switch to thumbnail mode / open selected image in image mode.
|
2011-10-16 20:33:23 +02:00
|
|
|
.TP
|
|
|
|
.B f
|
|
|
|
Toggle fullscreen mode.
|
|
|
|
.TP
|
2012-02-15 22:33:39 +01:00
|
|
|
.B b
|
|
|
|
Toggle visibility of info bar on bottom of window.
|
|
|
|
.TP
|
2014-01-31 13:21:23 +01:00
|
|
|
.B Ctrl-x
|
2014-08-16 21:31:05 +02:00
|
|
|
Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER
|
|
|
|
for more information.
|
2014-01-31 13:21:23 +01:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B g
|
|
|
|
Go to the first image.
|
|
|
|
.TP
|
|
|
|
.B G
|
|
|
|
Go to the last image, or image number
|
|
|
|
.IR count .
|
|
|
|
.TP
|
2011-10-16 20:33:23 +02:00
|
|
|
.B r
|
|
|
|
Reload image.
|
|
|
|
.TP
|
|
|
|
.B D
|
|
|
|
Remove current image from file list and go to next image.
|
2013-08-10 21:18:53 +02:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.BR Ctrl-h ", " Ctrl-Left
|
|
|
|
Scroll left one screen width.
|
|
|
|
.TP
|
|
|
|
.BR Ctrl-j ", " Ctrl-Down
|
|
|
|
Scroll down one screen height.
|
|
|
|
.TP
|
|
|
|
.BR Ctrl-k ", " Ctrl-Up
|
|
|
|
Scroll up one screen height.
|
|
|
|
.TP
|
|
|
|
.BR Ctrl-l ", " Ctrl-Right
|
|
|
|
Scroll right one screen width.
|
|
|
|
.TP
|
2014-09-28 00:26:02 +02:00
|
|
|
.BR +
|
|
|
|
Zoom in.
|
|
|
|
.TP
|
|
|
|
.B \-
|
|
|
|
Zoom out.
|
|
|
|
.TP
|
2013-08-10 21:18:53 +02:00
|
|
|
.B m
|
|
|
|
Mark/unmark the current image.
|
|
|
|
.TP
|
2013-11-14 14:45:27 +01:00
|
|
|
.B M
|
2013-11-14 17:16:09 +01:00
|
|
|
Reverse all image marks.
|
2013-11-14 14:45:27 +01:00
|
|
|
.TP
|
2014-08-17 20:27:01 +02:00
|
|
|
.B Ctrl-m
|
|
|
|
Remove all image marks.
|
|
|
|
.TP
|
2013-08-10 21:18:53 +02:00
|
|
|
.B N
|
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
marked images forward.
|
|
|
|
.TP
|
|
|
|
.B P
|
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
marked images backward.
|
2015-01-07 08:43:54 +01:00
|
|
|
.TP
|
|
|
|
.B {
|
|
|
|
Decrease gamma correction by
|
|
|
|
.I count
|
|
|
|
steps.
|
|
|
|
.TP
|
|
|
|
.B }
|
|
|
|
Increase gamma correction by
|
|
|
|
.I count
|
|
|
|
steps.
|
|
|
|
.TP
|
|
|
|
.B Ctrl-g
|
|
|
|
Reset gamma correction.
|
2011-10-16 20:33:23 +02:00
|
|
|
.SH THUMBNAIL KEYBOARD COMMANDS
|
|
|
|
The following keyboard commands are only available in thumbnail mode:
|
|
|
|
.TP
|
|
|
|
.BR h ", " Left
|
2012-07-15 10:30:58 +02:00
|
|
|
Move selection left
|
|
|
|
.I count
|
|
|
|
times.
|
2011-10-16 20:33:23 +02:00
|
|
|
.TP
|
|
|
|
.BR j ", " Down
|
2012-07-15 10:30:58 +02:00
|
|
|
Move selection down
|
|
|
|
.I count
|
|
|
|
times.
|
2011-10-16 20:33:23 +02:00
|
|
|
.TP
|
|
|
|
.BR k ", " Up
|
2012-07-15 10:30:58 +02:00
|
|
|
Move selection up
|
|
|
|
.I count
|
|
|
|
times.
|
2011-10-16 20:33:23 +02:00
|
|
|
.TP
|
|
|
|
.BR l ", " Right
|
2012-07-15 10:30:58 +02:00
|
|
|
Move selection right
|
|
|
|
.I count
|
|
|
|
times.
|
2011-10-27 16:21:01 +02:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B R
|
|
|
|
Reload all thumbnails.
|
2011-10-16 20:33:23 +02:00
|
|
|
.SH IMAGE KEYBOARD COMMANDS
|
|
|
|
The following keyboard commands are only available in image mode:
|
|
|
|
.SS Navigate image list
|
|
|
|
.TP
|
|
|
|
.BR n ", " Space
|
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
images forward.
|
|
|
|
.TP
|
|
|
|
.BR p ", " Backspace
|
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
images backward.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
|
|
|
.B [
|
2011-10-16 20:33:23 +02:00
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
* 10 images backward.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
|
|
|
.B ]
|
2011-10-16 20:33:23 +02:00
|
|
|
Go
|
|
|
|
.I count
|
|
|
|
* 10 images forward.
|
2011-09-02 18:54:52 +02:00
|
|
|
.SS Handle multi-frame images
|
|
|
|
.TP
|
|
|
|
.B Ctrl-n
|
|
|
|
Go to the next frame of a multi-frame image.
|
|
|
|
.TP
|
|
|
|
.B Ctrl-p
|
|
|
|
Go to the previous frame of a multi-frame image.
|
|
|
|
.TP
|
|
|
|
.B Ctrl-Space
|
2014-07-25 22:52:31 +02:00
|
|
|
Play/stop animations of multi-frame images.
|
2011-10-16 20:33:23 +02:00
|
|
|
.SS Panning
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2011-01-28 13:42:39 +01:00
|
|
|
.BR h ", " Left
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image 1/5 of window width or
|
2011-10-16 20:33:23 +02:00
|
|
|
.I count
|
|
|
|
pixel left.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2011-01-28 13:42:39 +01:00
|
|
|
.BR j ", " Down
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image 1/5 of window height or
|
2011-10-16 20:33:23 +02:00
|
|
|
.I count
|
|
|
|
pixel down.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2011-01-28 13:42:39 +01:00
|
|
|
.BR k ", " Up
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image 1/5 of window height or
|
2011-10-16 20:33:23 +02:00
|
|
|
.I count
|
|
|
|
pixel up.
|
2011-01-23 18:20:08 +01:00
|
|
|
.TP
|
2011-01-28 13:42:39 +01:00
|
|
|
.BR l ", " Right
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image 1/5 of window width or
|
2011-10-16 20:33:23 +02:00
|
|
|
.I count
|
|
|
|
pixel right.
|
2011-05-16 15:58:19 +02:00
|
|
|
.TP
|
2011-06-03 23:39:22 +02:00
|
|
|
.B H
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll to left image edge.
|
2011-05-16 15:58:19 +02:00
|
|
|
.TP
|
2011-06-03 23:39:22 +02:00
|
|
|
.B J
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll to bottom image edge.
|
2011-05-16 15:58:19 +02:00
|
|
|
.TP
|
2011-06-03 23:39:22 +02:00
|
|
|
.B K
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll to top image edge.
|
2011-05-16 15:58:19 +02:00
|
|
|
.TP
|
2011-06-03 23:39:22 +02:00
|
|
|
.B L
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll to right image edge.
|
|
|
|
.SS Zooming
|
2011-06-03 23:39:22 +02:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B =
|
|
|
|
Set zoom level to 100%, or
|
|
|
|
.IR count %.
|
2011-06-03 23:39:22 +02:00
|
|
|
.TP
|
2014-07-23 21:50:31 +02:00
|
|
|
.B w
|
|
|
|
Set zoom level to 100%, but fit large images into window.
|
|
|
|
.TP
|
|
|
|
.B W
|
|
|
|
Fit image to window.
|
|
|
|
.TP
|
|
|
|
.B e
|
|
|
|
Fit image to window width.
|
|
|
|
.TP
|
|
|
|
.B E
|
|
|
|
Fit image to window height.
|
2011-01-26 14:42:10 +01:00
|
|
|
.SS Rotation
|
|
|
|
.TP
|
|
|
|
.B <
|
|
|
|
Rotate image counter-clockwise by 90 degrees.
|
|
|
|
.TP
|
|
|
|
.B >
|
|
|
|
Rotate image clockwise by 90 degrees.
|
2013-06-23 16:02:26 +02:00
|
|
|
.TP
|
|
|
|
.B ?
|
|
|
|
Rotate image by 180 degrees.
|
2014-07-23 21:50:31 +02:00
|
|
|
.SS Flipping
|
2012-05-06 09:39:45 +02:00
|
|
|
.TP
|
2013-08-10 15:58:16 +02:00
|
|
|
.B |
|
2012-05-06 09:39:45 +02:00
|
|
|
Flip image horizontally.
|
|
|
|
.TP
|
2013-08-10 15:58:16 +02:00
|
|
|
.B _
|
2012-05-06 09:39:45 +02:00
|
|
|
Flip image vertically.
|
2011-01-26 14:59:32 +01:00
|
|
|
.SS Miscellaneous
|
|
|
|
.TP
|
2014-02-04 22:38:24 +01:00
|
|
|
.B a
|
|
|
|
Toggle anti-aliasing.
|
|
|
|
.TP
|
2014-04-06 22:47:42 +02:00
|
|
|
.B A
|
|
|
|
Toggle visibility of alpha-channel, i.e. image transparency.
|
|
|
|
.TP
|
2014-01-04 18:38:40 +01:00
|
|
|
.B s
|
|
|
|
Toggle slideshow mode and/or set the delay between images to
|
|
|
|
.I count
|
|
|
|
seconds.
|
2011-01-26 18:38:54 +01:00
|
|
|
.SH MOUSE COMMANDS
|
2011-10-16 20:33:23 +02:00
|
|
|
The following mouse mappings are available in image mode:
|
2011-01-26 18:38:54 +01:00
|
|
|
.SS Navigate image list
|
|
|
|
.TP
|
|
|
|
.B Button1
|
2011-10-16 20:33:23 +02:00
|
|
|
Go to next image.
|
2011-01-30 22:02:03 +01:00
|
|
|
.TP
|
2011-01-26 18:38:54 +01:00
|
|
|
.B Button3
|
|
|
|
Go to the previous image.
|
2014-07-23 21:50:31 +02:00
|
|
|
.SS Panning
|
2011-02-21 17:06:32 +01:00
|
|
|
.TP
|
|
|
|
.B Button2
|
|
|
|
Drag the image with the mouse while keeping this button pressed down.
|
2011-01-26 18:38:54 +01:00
|
|
|
.TP
|
|
|
|
.B ScrollUp
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image up.
|
2011-01-26 18:38:54 +01:00
|
|
|
.TP
|
|
|
|
.B ScrollDown
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image down.
|
2011-01-26 18:38:54 +01:00
|
|
|
.TP
|
|
|
|
.B Shift+ScrollUp
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image left.
|
2011-01-26 18:38:54 +01:00
|
|
|
.TP
|
|
|
|
.B Shift+ScrollDown
|
2014-07-23 21:50:31 +02:00
|
|
|
Scroll image right.
|
|
|
|
.SS Zooming
|
|
|
|
.TP
|
|
|
|
.B Ctrl+ScrollUp
|
|
|
|
Zoom in.
|
|
|
|
.TP
|
|
|
|
.B Ctrl+ScrollDown
|
|
|
|
Zoom out.
|
2013-01-27 18:03:01 +01:00
|
|
|
.SH STATUS BAR
|
|
|
|
The information displayed on the left side of the status bar can be replaced
|
|
|
|
with the output of a user-provided script, which is called by sxiv whenever an
|
|
|
|
image gets loaded. The path of this script is
|
2014-01-11 22:47:41 +01:00
|
|
|
.I $XDG_CONFIG_HOME/sxiv/exec/image-info
|
2013-01-27 18:03:01 +01:00
|
|
|
and the first argument to this script is the path of the loaded image.
|
|
|
|
.P
|
|
|
|
There is also an example script installed together with sxiv as
|
|
|
|
.IR PREFIX/share/sxiv/exec/image-info .
|
2014-05-19 21:53:23 +02:00
|
|
|
.SH EXTERNAL KEY HANDLER
|
|
|
|
Additional external keyboard commands can be defined using a handler program
|
|
|
|
located in
|
|
|
|
.IR $XDG_CONFIG_HOME/sxiv/exec/key-handler .
|
|
|
|
The handler is invoked by pressing
|
|
|
|
.BR Ctrl-x .
|
2014-11-27 22:37:20 +01:00
|
|
|
The next key combo is passed as its first argument. The paths of all marked
|
|
|
|
images--or of the current image, if no image is marked--are passed via stdin,
|
|
|
|
one file path per line.
|
2014-08-16 21:31:05 +02:00
|
|
|
sxiv(1) will block until the handler terminates. It then checks which images
|
|
|
|
have been modified and reloads them.
|
2014-05-19 21:53:23 +02:00
|
|
|
|
|
|
|
The key combo argument has the following form: "[C-][M-][S-]KEY",
|
|
|
|
where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
|
|
|
|
keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
|
|
|
|
|
|
|
|
There is also an example script installed together with sxiv as
|
|
|
|
.IR PREFIX/share/sxiv/exec/key-handler .
|
2011-04-08 17:07:25 +02:00
|
|
|
.SH THUMBNAIL CACHING
|
2014-06-10 23:15:04 +02:00
|
|
|
sxiv stores all thumbnails under
|
|
|
|
.IR $XDG_CACHE_HOME/sxiv/ .
|
2011-04-08 17:07:25 +02:00
|
|
|
.P
|
|
|
|
Use the command line option
|
2011-04-11 21:27:20 +02:00
|
|
|
.I \-c
|
2014-06-10 23:15:04 +02:00
|
|
|
to remove all orphaned cache files. Additionally, run the following command
|
|
|
|
afterwards inside the cache directory to remove empty subdirectories:
|
2011-04-08 17:07:25 +02:00
|
|
|
.P
|
|
|
|
.RS
|
2012-03-02 19:32:56 +01:00
|
|
|
find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
|
|
|
|
.RE
|
2012-05-14 21:43:18 +02:00
|
|
|
.SH AUTHOR
|
2011-01-27 10:18:23 +01:00
|
|
|
.EX
|
2014-01-11 22:47:41 +01:00
|
|
|
Bert Muennich <ber.t at posteo.de>
|
2011-01-27 10:18:23 +01:00
|
|
|
.EE
|
2012-05-14 21:43:18 +02:00
|
|
|
.SH CONTRIBUTORS
|
|
|
|
.EX
|
2012-05-16 11:18:55 +02:00
|
|
|
Bastien Dejean <nihilhill at gmail.com>
|
2012-05-14 21:43:18 +02:00
|
|
|
Dave Reisner <d at falconindy.com>
|
|
|
|
Fung SzeTat <sthorde at gmail.com>
|
2013-01-27 18:03:01 +01:00
|
|
|
.EE
|
2011-01-23 18:35:01 +01:00
|
|
|
.SH HOMEPAGE
|
2013-01-27 18:03:01 +01:00
|
|
|
.EX
|
2012-02-21 08:19:12 +01:00
|
|
|
https://github.com/muennich/sxiv
|
2013-01-27 18:03:01 +01:00
|
|
|
.EE
|
2011-01-23 18:20:08 +01:00
|
|
|
.SH SEE ALSO
|
2011-01-26 18:38:54 +01:00
|
|
|
.BR feh (1),
|
|
|
|
.BR qiv (1)
|