| 1 | .TH NSXIV 1 nsxiv\-VERSION |
| 2 | .SH NAME |
| 3 | nsxiv \- Neo Simple X Image Viewer |
| 4 | .SH SYNOPSIS |
| 5 | .B nsxiv |
| 6 | .RB [ \-abcfhiopqrtvZ0 ] |
| 7 | .RB [ \-A |
| 8 | .IR FRAMERATE ] |
| 9 | .RB [ \-e |
| 10 | .IR WID ] |
| 11 | .RB [ \-G |
| 12 | .IR GAMMA ] |
| 13 | .RB [ \-g |
| 14 | .IR GEOMETRY ] |
| 15 | .RB [ \-N |
| 16 | .IR NAME ] |
| 17 | .RB [ \-n |
| 18 | .IR NUM ] |
| 19 | .RB [ \-S |
| 20 | .IR DELAY ] |
| 21 | .RB [ \-s |
| 22 | .IR MODE ] |
| 23 | .RB [ \-T |
| 24 | .IR TITLE ] |
| 25 | .RB [ \-z |
| 26 | .IR ZOOM ] |
| 27 | .IR FILE ... |
| 28 | .SH DESCRIPTION |
| 29 | nsxiv is a simple image viewer for X. |
| 30 | .P |
| 31 | It has two modes of operation: image and thumbnail mode. The default is image |
| 32 | mode, in which only the current image is shown. In thumbnail mode a grid of |
| 33 | small previews is displayed, making it easy to choose an image to open. |
| 34 | .P |
| 35 | Please note, that the fullscreen mode requires an EWMH/NetWM compliant window |
| 36 | manager. |
| 37 | .SH OPTIONS |
| 38 | .TP |
| 39 | .BI "\-A " FRAMERATE |
| 40 | Play animations with a constant frame rate set to |
| 41 | .IR FRAMERATE . |
| 42 | .TP |
| 43 | .B \-a |
| 44 | Play animations of multi-frame images. |
| 45 | .TP |
| 46 | .B \-b |
| 47 | Do not show statusbar at the bottom of the window. |
| 48 | .TP |
| 49 | .B \-c |
| 50 | Remove all orphaned cache files from the thumbnail cache directory and exit. |
| 51 | .TP |
| 52 | .BI "\-e " WID |
| 53 | Embed nsxiv's window into window whose ID is |
| 54 | .IR WID . |
| 55 | .TP |
| 56 | .B \-f |
| 57 | Start in fullscreen mode. |
| 58 | .TP |
| 59 | .BI "\-G " GAMMA |
| 60 | Set image gamma to GAMMA (\-32..32). |
| 61 | .TP |
| 62 | .BI "\-g " GEOMETRY |
| 63 | Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for |
| 64 | more information on GEOMETRY argument. |
| 65 | .TP |
| 66 | .BI "\-N " NAME |
| 67 | Set the resource name of nsxiv's X window to NAME. |
| 68 | .TP |
| 69 | .BI "\-n " NUM |
| 70 | Start at picture number NUM. |
| 71 | .TP |
| 72 | .B \-h |
| 73 | Print brief usage information to standard output and exit. |
| 74 | .TP |
| 75 | .B \-i |
| 76 | Read names of files to open from standard input. Also done if FILE is `-'. |
| 77 | .TP |
| 78 | .B \-o |
| 79 | Write list of all marked files to standard output when quitting. In combination |
| 80 | with |
| 81 | .B \-i |
| 82 | nsxiv can be used as a visual filter/pipe. |
| 83 | .TP |
| 84 | .B \-p |
| 85 | Enable private mode, in which nsxiv does not write any cache or temporary files. |
| 86 | .TP |
| 87 | .B \-q |
| 88 | Be quiet, disable warnings to standard error stream. |
| 89 | .TP |
| 90 | .B \-r |
| 91 | Search the given directories recursively for images to view. |
| 92 | .TP |
| 93 | .BI "\-S " DELAY |
| 94 | Start in slideshow mode. Set the delay between images to |
| 95 | .I DELAY |
| 96 | seconds. |
| 97 | .I DELAY |
| 98 | may be a floating point number. |
| 99 | .TP |
| 100 | .BI "\-s " MODE |
| 101 | Set scale mode according to MODE character. Supported modes are: [d]own, |
| 102 | [f]it, [F]ill, [w]idth, [h]eight. |
| 103 | .TP |
| 104 | .BI "\-T " TITLE |
| 105 | Set the window title to TITLE. Use the format `prefix:suffixmode'. Any string |
| 106 | literal is accepted for prefix, and the format of suffixmode is: |
| 107 | |
| 108 | .EX |
| 109 | Value Format |
| 110 | 0 Empty |
| 111 | 1 Basename of file |
| 112 | 2 Full path to file |
| 113 | .EE |
| 114 | |
| 115 | By default, prefix is set to "nsxiv - " and suffixmode is set to 1 (basename). |
| 116 | .TP |
| 117 | .B \-t |
| 118 | Start in thumbnail mode. |
| 119 | .TP |
| 120 | .B \-v |
| 121 | Print version information to standard output and exit. |
| 122 | .TP |
| 123 | .B \-Z |
| 124 | The same as `\-z 100'. |
| 125 | .TP |
| 126 | .BI "\-z " ZOOM |
| 127 | Set zoom level to ZOOM percent. |
| 128 | .TP |
| 129 | .B \-0 |
| 130 | Use NULL-separator. With this option output of \-o and file-list sent to the |
| 131 | key-handler and the input of \-i will be separated by a NULL character. |
| 132 | .SH KEYBOARD COMMANDS |
| 133 | .SS General |
| 134 | The following keyboard commands are available in both image and thumbnail mode: |
| 135 | .TP |
| 136 | .BR 0 \- 9 |
| 137 | Prefix the next command with a number (denoted via |
| 138 | .IR count ). |
| 139 | .TP |
| 140 | .B q |
| 141 | Quit nsxiv. |
| 142 | .TP |
| 143 | .B Return |
| 144 | Switch to thumbnail mode / open selected image in image mode. |
| 145 | .TP |
| 146 | .B f |
| 147 | Toggle fullscreen mode. |
| 148 | .TP |
| 149 | .B b |
| 150 | Toggle visibility of statusbar at the bottom of the window. |
| 151 | .TP |
| 152 | .B Ctrl-x |
| 153 | Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER |
| 154 | for more information. |
| 155 | .TP |
| 156 | .B g |
| 157 | Go to the first image. |
| 158 | .TP |
| 159 | .B G |
| 160 | Go to the last image, or image number |
| 161 | .IR count . |
| 162 | .TP |
| 163 | .B r |
| 164 | Reload image. |
| 165 | .TP |
| 166 | .B D |
| 167 | Remove current image from file list and go to next image. |
| 168 | .TP |
| 169 | .BR Ctrl-h ", " Ctrl-Left |
| 170 | Scroll left one screen width. |
| 171 | .TP |
| 172 | .BR Ctrl-j ", " Ctrl-Down |
| 173 | Scroll down one screen height. |
| 174 | .TP |
| 175 | .BR Ctrl-k ", " Ctrl-Up |
| 176 | Scroll up one screen height. |
| 177 | .TP |
| 178 | .BR Ctrl-l ", " Ctrl-Right |
| 179 | Scroll right one screen width. |
| 180 | .TP |
| 181 | .BR + |
| 182 | Zoom in. |
| 183 | .TP |
| 184 | .B \- |
| 185 | Zoom out. |
| 186 | .TP |
| 187 | .B m |
| 188 | Mark/unmark the current image. |
| 189 | .TP |
| 190 | .B M |
| 191 | Mark/unmark all images starting from the last marked/unmarked image up to the |
| 192 | current one. |
| 193 | .TP |
| 194 | .B Ctrl-m |
| 195 | Reverse all image marks. |
| 196 | .TP |
| 197 | .B Ctrl-u |
| 198 | Remove all image marks. |
| 199 | .TP |
| 200 | .B N |
| 201 | Go |
| 202 | .I count |
| 203 | marked images forward. |
| 204 | .TP |
| 205 | .B P |
| 206 | Go |
| 207 | .I count |
| 208 | marked images backward. |
| 209 | .TP |
| 210 | .B { |
| 211 | Decrease gamma correction by |
| 212 | .I count |
| 213 | steps. |
| 214 | .TP |
| 215 | .B } |
| 216 | Increase gamma correction by |
| 217 | .I count |
| 218 | steps. |
| 219 | .TP |
| 220 | .B Ctrl-g |
| 221 | Reset gamma correction. |
| 222 | .SS Thumbnail mode |
| 223 | The following keyboard commands are only available in thumbnail mode: |
| 224 | .TP |
| 225 | .BR h ", " Left |
| 226 | Move selection left |
| 227 | .I count |
| 228 | times. |
| 229 | .TP |
| 230 | .BR j ", " Down |
| 231 | Move selection down |
| 232 | .I count |
| 233 | times. |
| 234 | .TP |
| 235 | .BR k ", " Up |
| 236 | Move selection up |
| 237 | .I count |
| 238 | times. |
| 239 | .TP |
| 240 | .BR l ", " Right |
| 241 | Move selection right |
| 242 | .I count |
| 243 | times. |
| 244 | .TP |
| 245 | .B R |
| 246 | Reload all thumbnails. |
| 247 | .SS Image mode |
| 248 | The following keyboard commands are only available in image mode: |
| 249 | .TP |
| 250 | Navigate image list: |
| 251 | .TP |
| 252 | .BR n ", " Space |
| 253 | Go |
| 254 | .I count |
| 255 | images forward. |
| 256 | .TP |
| 257 | .BR p ", " Backspace |
| 258 | Go |
| 259 | .I count |
| 260 | images backward. |
| 261 | .TP |
| 262 | .B [ |
| 263 | Go |
| 264 | .I count |
| 265 | * 10 images backward. |
| 266 | .TP |
| 267 | .B ] |
| 268 | Go |
| 269 | .I count |
| 270 | * 10 images forward. |
| 271 | .TP |
| 272 | Handle multi-frame images: |
| 273 | .TP |
| 274 | .B Ctrl-n |
| 275 | Go |
| 276 | .I count |
| 277 | frames of a multi-frame image forward. |
| 278 | .TP |
| 279 | .B Ctrl-p |
| 280 | Go |
| 281 | .I count |
| 282 | frames of a multi-frame image backward. |
| 283 | .TP |
| 284 | .BR Ctrl-a ", " Ctrl-Space |
| 285 | Play/stop animations of multi-frame images. |
| 286 | .TP |
| 287 | Panning: |
| 288 | .TP |
| 289 | .BR h ", " Left |
| 290 | Scroll image 1/5 of window width or |
| 291 | .I count |
| 292 | pixels left. |
| 293 | .TP |
| 294 | .BR j ", " Down |
| 295 | Scroll image 1/5 of window height or |
| 296 | .I count |
| 297 | pixels down. |
| 298 | .TP |
| 299 | .BR k ", " Up |
| 300 | Scroll image 1/5 of window height or |
| 301 | .I count |
| 302 | pixels up. |
| 303 | .TP |
| 304 | .BR l ", " Right |
| 305 | Scroll image 1/5 of window width or |
| 306 | .I count |
| 307 | pixels right. |
| 308 | .TP |
| 309 | .B H |
| 310 | Scroll to left image edge. |
| 311 | .TP |
| 312 | .B J |
| 313 | Scroll to bottom image edge. |
| 314 | .TP |
| 315 | .B K |
| 316 | Scroll to top image edge. |
| 317 | .TP |
| 318 | .B L |
| 319 | Scroll to right image edge. |
| 320 | .TP |
| 321 | .B z |
| 322 | Scroll to image center. |
| 323 | .TP |
| 324 | Zooming: |
| 325 | .TP |
| 326 | .B = |
| 327 | Set zoom level to 100%, or |
| 328 | .IR count %. |
| 329 | .TP |
| 330 | .B w |
| 331 | Set zoom level to 100%, but fit large images into window. |
| 332 | .TP |
| 333 | .B W |
| 334 | Fit image to window. |
| 335 | .TP |
| 336 | .B F |
| 337 | Fill image to window. |
| 338 | .TP |
| 339 | .B e |
| 340 | Fit image to window width. |
| 341 | .TP |
| 342 | .B E |
| 343 | Fit image to window height. |
| 344 | .TP |
| 345 | Rotation: |
| 346 | .TP |
| 347 | .B < |
| 348 | Rotate image counter-clockwise by 90 degrees. |
| 349 | .TP |
| 350 | .B > |
| 351 | Rotate image clockwise by 90 degrees. |
| 352 | .TP |
| 353 | .B ? |
| 354 | Rotate image by 180 degrees. |
| 355 | .TP |
| 356 | Flipping: |
| 357 | .TP |
| 358 | .B | |
| 359 | Flip image horizontally. |
| 360 | .TP |
| 361 | .B _ |
| 362 | Flip image vertically. |
| 363 | .TP |
| 364 | Miscellaneous: |
| 365 | .TP |
| 366 | .B a |
| 367 | Toggle anti-aliasing. |
| 368 | .TP |
| 369 | .B A |
| 370 | Toggle visibility of alpha-channel, i.e. image transparency. |
| 371 | .TP |
| 372 | .B s |
| 373 | Toggle slideshow mode and/or set the delay between images to |
| 374 | .I count |
| 375 | seconds. |
| 376 | .SH MOUSE COMMANDS |
| 377 | .SS Thumbnail mode |
| 378 | The following mouse mappings are available in thumbnail mode: |
| 379 | .TP |
| 380 | .B Button1 |
| 381 | Select the image. Goes into image mode if double\-clicked. |
| 382 | .TP |
| 383 | .B Button3 |
| 384 | Mark/unmark the image. Dragging while holding Button3 down will mark/unmark |
| 385 | multiple images. |
| 386 | .TP |
| 387 | .B Button4 |
| 388 | Scroll up by one row. |
| 389 | .TP |
| 390 | .B Button5 |
| 391 | Scroll down by one row. |
| 392 | .TP |
| 393 | .B Ctrl-Button4 |
| 394 | Scroll up by one page. |
| 395 | .TP |
| 396 | .B Ctrl-Button5 |
| 397 | Scroll down by one page. |
| 398 | .SS Image mode |
| 399 | The following mouse mappings are available in image mode: |
| 400 | .TP |
| 401 | .B Button1 |
| 402 | Go to the next image if the mouse cursor is in the right part of the window or |
| 403 | to the previous image if it is in the left part. |
| 404 | .TP |
| 405 | .B Ctrl-Button1 |
| 406 | Pan the image relative to the mouse cursor. |
| 407 | .TP |
| 408 | .B Button2 |
| 409 | Pan the image according to the mouse cursor position in the window while |
| 410 | keeping this button pressed down. |
| 411 | .TP |
| 412 | .B Button3 |
| 413 | Switch to thumbnail mode. |
| 414 | .TP |
| 415 | .B Button4 |
| 416 | Zoom in. |
| 417 | .TP |
| 418 | .B Button5 |
| 419 | Zoom out. |
| 420 | .SH CONFIGURATION |
| 421 | The following X resources are supported: |
| 422 | .TP |
| 423 | .B window.background |
| 424 | Color of the window background |
| 425 | .TP |
| 426 | .B window.foreground |
| 427 | Color of the window foreground |
| 428 | .TP |
| 429 | .B bar.font |
| 430 | Name of Xft bar font |
| 431 | .TP |
| 432 | .B bar.background |
| 433 | Color of the bar background. Defaults to window.background |
| 434 | .TP |
| 435 | .B bar.foreground |
| 436 | Color of the bar foreground. Defaults to window.foreground |
| 437 | .TP |
| 438 | .B mark.foreground |
| 439 | Color of the mark foreground. Defaults to window.foreground |
| 440 | .TP |
| 441 | Please see xrdb(1) on how to change them. |
| 442 | .SH STATUS BAR |
| 443 | The information displayed on the left side of the status bar can be replaced |
| 444 | with the output of a user-provided script, which is called by nsxiv whenever an |
| 445 | image gets loaded. The path of this script is |
| 446 | .I $XDG_CONFIG_HOME/nsxiv/exec/image-info |
| 447 | and the arguments given to it are: 1) path to image file, 2) image width, |
| 448 | 3) image height. |
| 449 | .P |
| 450 | There is also an example script installed together with nsxiv as |
| 451 | .IR EGPREFIX/image-info . |
| 452 | .SH EXTERNAL KEY HANDLER |
| 453 | Additional external keyboard commands can be defined using a handler program |
| 454 | located in |
| 455 | .IR $XDG_CONFIG_HOME/nsxiv/exec/key-handler . |
| 456 | The handler is invoked by pressing |
| 457 | .BR Ctrl-x . |
| 458 | The next key combo is passed as its first argument. Passed via stdin are the |
| 459 | images to act upon: all marked images, if in thumbnail mode and at least one |
| 460 | image has been marked, otherwise the current image. nsxiv(1) will block until |
| 461 | the handler terminates. It then checks which images have been modified and |
| 462 | reloads them. |
| 463 | |
| 464 | By default nsxiv(1) will send one image per-line to stdin, however when using |
| 465 | \-0 the image list will be NULL separated and the enviornment variable |
| 466 | "$NSXIV_USING_NULL" will be set to 1. |
| 467 | |
| 468 | The key combo argument has the following form: "[C-][M-][S-]KEY", |
| 469 | where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X |
| 470 | keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. |
| 471 | If KEY has an uppercase equivalent, S-KEY is resolved into it. For instance, |
| 472 | K replaces S-k and Scedilla replaces S-scedilla, but S-Delete is sent as-is. |
| 473 | |
| 474 | There is also an example script installed together with nsxiv as |
| 475 | .IR EGPREFIX/key-handler . |
| 476 | .SH THUMBNAIL CACHING |
| 477 | nsxiv stores all thumbnails under |
| 478 | .IR $XDG_CACHE_HOME/nsxiv/ . |
| 479 | .P |
| 480 | Use the command line option |
| 481 | .I \-c |
| 482 | to remove all orphaned cache files. Additionally, run the following command |
| 483 | afterwards inside the cache directory to remove empty subdirectories: |
| 484 | .P |
| 485 | .RS |
| 486 | find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\; |
| 487 | .RE |
| 488 | .SH ORIGINAL AUTHOR |
| 489 | .EX |
| 490 | Bert Muennich <ber.t at posteo.de> |
| 491 | .EE |
| 492 | .SH CURRENT MAINTAINERS |
| 493 | .EX |
| 494 | N-R-K <nrk at disroot.org> |
| 495 | Berke Kocaoğlu <berke.kocaoglu at metu.edu.tr> |
| 496 | TAAPArthur <taaparthur at gmail.com> |
| 497 | eylles <ed.ylles1997 at gmail.com> |
| 498 | mamg22 <marcomonizg at gmail.com> |
| 499 | LuXu |
| 500 | explosion-mental <explosion0mental at gmail.com> |
| 501 | Guilherme Freire |
| 502 | Stein Gunnar Bakkeby <bakkeby at gmail.com> |
| 503 | Anupam Ashish Minz |
| 504 | Sam Whitehead |
| 505 | Kian Kasad <kian at kasad.com> |
| 506 | qsmodo |
| 507 | .EE |
| 508 | .SH CONTRIBUTORS |
| 509 | .EX |
| 510 | Bastien Dejean <nihilhill at gmail.com> |
| 511 | Dave Reisner <d at falconindy.com> |
| 512 | Fung SzeTat <sthorde at gmail.com> |
| 513 | Max Voit <mvdev at with-eyes.net> |
| 514 | |
| 515 | For additional contributors, run `git shortlog -s` in the nsxiv repository. |
| 516 | .EE |
| 517 | .SH HOMEPAGE |
| 518 | .TP |
| 519 | Website: |
| 520 | .EE |
| 521 | https://nsxiv.github.io/nsxiv/ |
| 522 | .EX |
| 523 | .TP |
| 524 | Source code: |
| 525 | .EE |
| 526 | https://github.com/nsxiv/nsxiv |
| 527 | .EX |
| 528 | .SH SEE ALSO |
| 529 | .BR X (7), |
| 530 | .BR xrdb (1) |