Krolyxon
Commit b752d5c

Branches

Refs →

nsxivREADME.md

139 lines · 5.0 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 -c Remove all orphaned cache files from thumbnail cache and exit
64 -d Scale all images to 100%, but fit large images into window
65 -F Use size-hints to make the window fixed/floating
66 -f Start in fullscreen mode
67 -g GEOMETRY Set window position and size
68 (see section GEOMETRY SPECIFICATIONS of X(7))
69 -n NUM Start at picture NUM
70 -p Pixelize, i.e. turn off image anti-aliasing
71 -q Be quiet, disable warnings
72 -r Search given directories recursively for images
73 -s Scale all images to fit into window
74 -t Start in thumbnail mode
75 -v Print version information and exit
76 -Z Same as `-z 100'
77 -z ZOOM Scale all images to current zoom level, use ZOOM at startup
78
79The following general key commands are available:
80
81 q Quit sxiv
82 Return Switch to thumbnail mode / open selected image
83
84 0-9 Prefix the next command with a number (denoted via [count])
85
86 g Go to first image
87 G Go to the last image, or image number [count]
88
89 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
90 window manager)
91 A Toggle visibility of alpha-channel, i.e. transparency
92
93 r Reload image
94 D Remove image from file list and go to next image
95
96
97The following additional key commands are available in *thumbnail mode*:
98
99 h,j,k,l Move selection left/down/up/right
100 Ctrl-j,k Scroll thumbnail grid one window height down/up
101
102The following additional key commands are available in *image mode*:
103
104 n,Space Go [count] images forward
105 p,Backspace Go [count] images backward
106 [,] Go [count] * 10 images backward/forward
107
108 Ctrl-n,p Go to the next/previous frame of a multi-frame image
109 Ctrl-Space Play/pause animation of a multi-frame image
110
111 + Zoom in
112 - Zoom out
113 = Set zoom level to 100%, or [count]%
114 w Fit image into window
115
116 h,j,k,l Pan image 1/5 of window width/height or [count] pixels
117 left/down/up/right (also with arrow keys)
118 H,J,K,L Pan to left/bottom/top/right image edge
119 Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
120 (also with Ctrl-arrow keys)
121
122 <,> Rotate image (counter-)clockwise by 90 degrees
123
124 s Toggle slideshow
125 Ctrl-'-' Decrease slideshow delay
126 Ctrl-'+' Increase slideshow delay
127 Ctrl-'=' Reset slideshow delay, or set it to [count] seconds
128
129 a Toggle anti-aliasing
130 W Resize window to fit image
131
132Additionally, the following mouse commands are available in *image mode*:
133
134 Button1 Go to the next image
135 Button2 Drag image with mouse while keeping it pressed
136 Button3 Go to the previous image
137 Scroll Pan image up/down
138 Shift+Scroll Pan image left/right
139 Ctrl+Scroll Zoom in/out