| 1 |  |
| 2 | |
| 3 | **Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer** |
| 4 | -------------------------------------------------------------------- |
| 5 | |
| 6 | nsxiv is a fork of now unmaintained [sxiv](https://github.com/muennich/sxiv) |
| 7 | with the purpose of maintaining it and adding simple, sensible features. |
| 8 | nsxiv is free software licensed under GPLv2 and aims to be easy to modify and customize. |
| 9 | |
| 10 | Please file a bug report if something does not work as documented or |
| 11 | expected in *this* repository, after making sure you are using the latest |
| 12 | release of nsxiv. Contributions are welcome, see [CONTRIBUTING.md](CONTRIBUTING.md) |
| 13 | for details. |
| 14 | |
| 15 | |
| 16 | Features |
| 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 | |
| 29 | Screenshots |
| 30 | ----------- |
| 31 | |
| 32 | **Image mode: (Default colors)** |
| 33 | |
| 34 |  |
| 35 | |
| 36 | **Thumbnail mode: (Custom colors)** |
| 37 | |
| 38 |  |
| 39 | |
| 40 | |
| 41 | Dependencies |
| 42 | ------------ |
| 43 | |
| 44 | nsxiv requires the following software to be installed: |
| 45 | |
| 46 | * Imlib2 |
| 47 | * X11 |
| 48 | * Xft |
| 49 | * freetype2 |
| 50 | * fontconfig |
| 51 | * giflib (optional, automatically enabled if installed) |
| 52 | * libexif (optional, automatically enabled if installed) |
| 53 | |
| 54 | Please make sure to install the corresponding development packages in case that |
| 55 | you want to build nsxiv on a distribution with separate runtime and development |
| 56 | packages (e.g. \*-dev on Debian). |
| 57 | |
| 58 | |
| 59 | Building |
| 60 | -------- |
| 61 | |
| 62 | nsxiv is built using the commands: |
| 63 | |
| 64 | $ make |
| 65 | |
| 66 | Running make will automatically detect if libexif and libgif are available and |
| 67 | enable them if so. CLI arguments will override any automatic detection. |
| 68 | For example: |
| 69 | |
| 70 | $ make HAVE_LIBGIF=0 |
| 71 | |
| 72 | will always disable libgif. |
| 73 | Alternatively, they can be disabled via editing `config.mk`. |
| 74 | |
| 75 | Installing nsxiv: |
| 76 | |
| 77 | # make install |
| 78 | |
| 79 | Please note, that this requires root privileges. |
| 80 | By default, nsxiv is installed using the prefix "/usr/local", so the full path |
| 81 | of the executable will be "/usr/local/bin/nsxiv". |
| 82 | |
| 83 | You can install nsxiv into a directory of your choice by changing this command to: |
| 84 | |
| 85 | $ make PREFIX="/your/dir" install |
| 86 | |
| 87 | The build-time specific settings of nsxiv can be found in the file *config.h*. |
| 88 | Please check and change them, so that they fit your needs. |
| 89 | If the file *config.h* does not already exist, then you have to create it with |
| 90 | the following command: |
| 91 | |
| 92 | $ make config.h |
| 93 | |
| 94 | |
| 95 | Usage |
| 96 | ----- |
| 97 | |
| 98 | Please see man page for information on how to use nsxiv. To do so, execute the |
| 99 | following after the installation: |
| 100 | |
| 101 | $ man nsxiv |
| 102 | |
| 103 | |
| 104 | F.A.Q |
| 105 | ----- |
| 106 | |
| 107 | * Can I open remote urls with nsxiv? <br> |
| 108 | Yes, see [nsxiv-url](https://github.com/nsxiv/nsxiv/wiki/nsxiv-url) |
| 109 | |
| 110 | * Can I open all the images in a directory? <br> |
| 111 | Yes, see [nsxiv-rifle](https://github.com/nsxiv/nsxiv/wiki/nsxiv-rifle) |
| 112 | |
| 113 | * Can I set default arguments for nsxiv? <br> |
| 114 | Yes, see [nsxiv-env](https://github.com/nsxiv/nsxiv/wiki/nsxiv-env) |
| 115 | |
| 116 | * Can I pipe images into nsxiv? <br> |
| 117 | No, not yet. See https://github.com/nsxiv/nsxiv/issues/32 |
| 118 | |
| 119 | |
| 120 | Download |
| 121 | -------- |
| 122 | |
| 123 | You can [browse](https://github.com/nsxiv/nsxiv) the source code repository |
| 124 | on GitHub or get a copy using git with the following command: |
| 125 | |
| 126 | $ git clone https://github.com/nsxiv/nsxiv.git |