Krolyxon
Commit 55da6fb

Branches

Refs →

nsxivREADME.md

143 lines · 5.1 KB · Markdown

1sxiv: Simple (or small or suckless) X Image Viewer
2
3sxiv is an alternative to feh and qiv. Its only dependency besides xlib is
4imlib2. The primary goal for writing sxiv is to create an image viewer, which
5only has the most basic features required for fast image viewing (the ones I
6want). It has vi key bindings and works nicely with tiling window managers.
7Its code base should be kept small and clean to make it easy for you to dig
8into it and customize it for your needs.
9
10Features
11--------
12
13* Basic image operations, e.g. zooming, panning, rotating
14* Customizable key and mouse button mappings (in *config.h*)
15* Thumbnail mode: grid of selectable previews of all images
16* Ability to cache thumbnails for fast re-loading
17* Basic support for multi-frame images
18* Display image information in window title
19
20Additional features, that need to be enabled at compile-time (in *config.h*),
21because they depend on additional libraries:
22
23* Load all frames from GIF files and play GIF animations (requires giflib)
24* Auto-orientate JPEG images according to their EXIF tags (requires libexif)
25
26Screenshots
27-----------
28
29Image mode:
30
31 <img src="http://github.com/muennich/sxiv/raw/master/sample/image.png">
32
33Thumbnail mode:
34
35 <img src="http://github.com/muennich/sxiv/raw/master/sample/thumb.png">
36
37Installation
38------------
39sxiv is built using the commands:
40
41 $ make
42 # make install
43
44Please note, that the latter one requires root privileges.
45By default, sxiv is installed using the prefix "/usr/local", so the full path
46of the executable will be "/usr/local/bin/sxiv".
47
48You can install sxiv into a directory of your choice by changing the second
49command to:
50
51 # make PREFIX="/your/dir" install
52
53The build-time specific settings of sxiv can be found in the file *config.h*.
54Please check and change them, so that they fit your needs.
55If the file *config.h* does not already exist, then you have to create it with
56the following command:
57
58 $ make config.h
59
60Usage
61-----
62sxiv has two modes of operation: image and thumbnail mode. The default is
63image mode, in which only the current image is shown. In thumbnail mode a grid
64of small previews is displayed, making it easy to choose an image to open.
65
66sxiv supports the following command-line options:
67
68 -c Remove all orphaned cache files from thumbnail cache and exit
69 -d Scale all images to 100%, but fit large images into window
70 -F Use size-hints to make the window fixed/floating
71 -f Start in fullscreen mode
72 -g GEOMETRY Set window position and size
73 (see section GEOMETRY SPECIFICATIONS of X(7))
74 -n NUM Start at picture NUM
75 -p Pixelize, i.e. turn off image anti-aliasing
76 -q Be quiet, disable warnings
77 -r Search given directories recursively for images
78 -s Scale all images to fit into window
79 -t Start in thumbnail mode
80 -v Print version information and exit
81 -Z Same as `-z 100'
82 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
83
84The following general key commands are available:
85
86 q Quit sxiv
87 Return Switch to thumbnail mode / open selected image
88
89 0-9 Prefix the next command with a number (denoted via [count])
90
91 g Go to first image
92 G Go to the last image, or image number [count]
93
94 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
95 window manager)
96 A Toggle visibility of alpha-channel, i.e. transparency
97
98 r Reload image
99 D Remove image from file list and go to next image
100
101
102The following additional key commands are available in *thumbnail mode*:
103
104 h,j,k,l Move selection left/down/up/right
105
106The following additional key commands are available in *image mode*:
107
108 n,Space Go [count] images forward
109 p,Backspace Go [count] images backward
110 [,] Go [count] * 10 images backward/forward
111
112 Ctrl-n,p Go to the next/previous frame of a multi-frame image
113 Ctrl-Space Play/pause animation of a multi-frame image
114
115 + Zoom in
116 - Zoom out
117 = Set zoom level to 100%, or [count]%
118 w Fit image into window
119
120 h,j,k,l Pan image 1/5 of window width/height or [count] pixels
121 left/down/up/right (also with arrow keys)
122 H,J,K,L Pan to left/bottom/top/right image edge
123 Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
124 (also with Ctrl-arrow keys)
125
126 <,> Rotate image (counter-)clockwise by 90 degrees
127
128 s Toggle slideshow
129 Ctrl-'-' Decrease slideshow delay
130 Ctrl-'+' Increase slideshow delay
131 Ctrl-'=' Reset slideshow delay, or set it to [count] seconds
132
133 a Toggle anti-aliasing
134 W Resize window to fit image
135
136Additionally, the following mouse commands are available in *image mode*:
137
138 Button1 Go to the next image
139 Button2 Drag image with mouse while keeping it pressed
140 Button3 Go to the previous image
141 Scroll Pan image up/down
142 Shift+Scroll Pan image left/right
143 Ctrl+Scroll Zoom in/out