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