Krolyxon
Commit 69a6df2

Branches

Refs →

nsxivREADME.md

141 lines · 5.2 KB · Markdown

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