Krolyxon
Commit 3bec517

Branches

Refs →

nsxivREADME.md

146 lines · 4.1 KB · Markdown

1![nsxiv](https://raw.githubusercontent.com/nsxiv/nsxiv/gh-pages/img/logo.png "nsxiv")
2
3**Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer**
4--------------------------------------------------------------------
5
6nsxiv is a fork of now unmaintained [sxiv](https://github.com/muennich/sxiv)
7with the purpose of maintaining it and adding simple, sensible features.
8nsxiv is free software licensed under GPLv2 and aims to be easy to modify and customize.
9
10Please file a bug report if something does not work as documented or
11expected in *this* repository, after making sure you are using the latest
12release of nsxiv. Contributions are welcome, see [CONTRIBUTING.md](CONTRIBUTING.md)
13for details.
14
15
16Features
17--------
18
19* Basic image operations, e.g. zooming, panning, rotating
20* Customizable key and mouse button mappings (in *config.h*)
21* Thumbnail mode: grid of selectable previews of all images
22* Ability to cache thumbnails for fast re-loading
23* Basic support for multi-frame images
24* Play GIF animations
25* Display image information in status bar
26* Display image name/path in X title
27
28
29Screenshots
30-----------
31
32**Image mode: (Default colors)**
33
34![Image](https://raw.githubusercontent.com/nsxiv/nsxiv/gh-pages/img/image.png "Image mode")
35
36**Thumbnail mode: (Custom colors)**
37
38![Thumb](https://raw.githubusercontent.com/nsxiv/nsxiv/gh-pages/img/thumb.png "Thumb mode")
39
40
41Dependencies
42------------
43
44nsxiv requires the following software to be installed:
45
46 * Imlib2
47 * X11
48 * Xft
49 * freetype2
50 * fontconfig
51
52The following libraries are optional. They are automatically enabled if installed.
53
54 * giflib : Used for animated gif playback.
55 * libexif : Used for auto-orientation and exif thumbnails.
56 * libwebp : Used for animated webp playback.
57
58Please make sure to install the corresponding development packages in case that
59you want to build nsxiv on a distribution with separate runtime and development
60packages (e.g. \*-dev on Debian).
61
62
63Building
64--------
65
66nsxiv is built using the commands:
67
68 $ make
69
70Running make will automatically detect if libexif and libgif are available and
71enable them if so. CLI arguments will override any automatic detection.
72For example:
73
74 $ make HAVE_LIBGIF=0
75
76will always disable libgif.
77Alternatively, they can be disabled via editing `config.mk`.
78
79Installing nsxiv:
80
81 # make install
82
83Installing desktop entry:
84
85 # make desktop
86
87Installing icons:
88
89 # make icon
90
91Please note, that these requires root privileges.
92By default, nsxiv is installed using the prefix `/usr/local`, so the full path
93of the executable will be `/usr/local/bin/nsxiv`, the `.desktop` entry will be
94`/usr/local/share/applications/nsxiv.desktop` and the icon path will be
95`/usr/local/share/icons/hicolor/{size}/apps/nsxiv.png`.
96
97You can install nsxiv into a directory of your choice by changing this command to:
98
99 $ make PREFIX="/your/dir" install
100
101Example scripts are installed using `DOCPREFIX` which defaults to
102`/usr/local/share/doc/nsxiv`. You can change `DOCPREFIX` the same way you can
103change `PREFIX` shown above.
104
105The build-time specific settings of nsxiv can be found in the file *config.h*.
106Please check and change them, so that they fit your needs.
107If the file *config.h* does not already exist, then you have to create it with
108the following command:
109
110 $ make config.h
111
112
113Usage
114-----
115
116Please see man page for information on how to use nsxiv. To do so, execute the
117following after the installation:
118
119 $ man nsxiv
120
121
122F.A.Q
123-----
124
125* Can I open remote urls with nsxiv? <br>
126Yes, see [nsxiv-url](https://github.com/nsxiv/nsxiv/wiki/nsxiv-url)
127
128* Can I open all the images in a directory? <br>
129Yes, see [nsxiv-rifle](https://github.com/nsxiv/nsxiv/wiki/nsxiv-rifle)
130
131* Can I set default arguments for nsxiv? <br>
132Yes, see [nsxiv-env](https://github.com/nsxiv/nsxiv/wiki/nsxiv-env)
133
134* Can I pipe images into nsxiv? <br>
135No, not yet. See [#32](https://github.com/nsxiv/nsxiv/issues/32)
136
137
138Download
139--------
140
141You can [browse](https://github.com/nsxiv/nsxiv) the source code repository
142on GitHub or get a copy using git with the following command:
143
144 $ git clone https://github.com/nsxiv/nsxiv.git
145
146You can view the changelog [here](CHANGELOG.md)