A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 14 година
пре 14 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 13 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 13 година
пре 14 година
пре 14 година
пре 13 година
пре 14 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 14 година
пре 13 година
пре 14 година
пре 13 година
пре 14 година
пре 14 година
пре 13 година
пре 13 година
пре 14 година
пре 13 година
пре 14 година
пре 13 година
пре 13 година
пре 13 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. sxiv: Simple (or small or suckless) X Image Viewer
  2. sxiv is an alternative to feh and qiv. Its only dependency besides xlib is
  3. imlib2. The primary goal for writing sxiv is to create an image viewer, which
  4. only has the most basic features required for fast image viewing (the ones I
  5. want). It has vi key bindings and works nicely with tiling window managers.
  6. Its code base should be kept small and clean to make it easy for you to dig
  7. into it and customize it for your needs.
  8. Features
  9. --------
  10. * Basic image operations, e.g. zooming, panning, rotating
  11. * Customizable key and mouse button mappings (in *config.h*)
  12. * Thumbnail mode: grid of selectable previews of all images
  13. * Ability to cache thumbnails for fast re-loading
  14. * Basic support for multi-frame images
  15. * Display image information in window title
  16. Additional features, that need to be enabled at compile-time (in *config.h*),
  17. because they depend on additional libraries:
  18. * Load all frames from GIF files and play GIF animations (requires giflib)
  19. * Auto-orientate JPEG images according to their EXIF tags (requires libexif)
  20. Screenshots
  21. -----------
  22. Image mode:
  23. <img src="http://github.com/muennich/sxiv/raw/master/sample/image.png">
  24. Thumbnail mode:
  25. <img src="http://github.com/muennich/sxiv/raw/master/sample/thumb.png">
  26. Installation
  27. ------------
  28. sxiv is built using the commands:
  29. $ make
  30. # make install
  31. Please note, that the latter one requires root privileges.
  32. By default, sxiv is installed using the prefix "/usr/local", so the full path
  33. of the executable will be "/usr/local/bin/sxiv".
  34. You can install sxiv into a directory of your choice by changing the second
  35. command to:
  36. # make PREFIX="/your/dir" install
  37. The build-time specific settings of sxiv can be found in the file *config.h*.
  38. Please check and change them, so that they fit your needs.
  39. If the file *config.h* does not already exist, then you have to create it with
  40. the following command:
  41. $ make config.h
  42. Usage
  43. -----
  44. sxiv has two modes of operation: image and thumbnail mode. The default is
  45. image mode, in which only the current image is shown. In thumbnail mode a grid
  46. of small previews is displayed, making it easy to choose an image to open.
  47. sxiv supports the following command-line options:
  48. -c Remove all orphaned cache files from thumbnail cache and exit
  49. -d Scale all images to 100%, but fit large images into window
  50. -F Use size-hints to make the window fixed/floating
  51. -f Start in fullscreen mode
  52. -g GEOMETRY Set window position and size
  53. (see section GEOMETRY SPECIFICATIONS of X(7))
  54. -n NUM Start at picture NUM
  55. -p Pixelize, i.e. turn off image anti-aliasing
  56. -q Be quiet, disable warnings
  57. -r Search given directories recursively for images
  58. -s Scale all images to fit into window
  59. -t Start in thumbnail mode
  60. -v Print version information and exit
  61. -Z Same as `-z 100'
  62. -z ZOOM Scale all images to current zoom level, use ZOOM at startup
  63. The following general key commands are available:
  64. q Quit sxiv
  65. Return Switch to thumbnail mode / open selected image
  66. 0-9 Prefix the next command with a number (denoted via [count])
  67. g Go to first image
  68. G Go to the last image, or image number [count]
  69. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  70. window manager)
  71. A Toggle visibility of alpha-channel, i.e. transparency
  72. r Reload image
  73. D Remove image from file list and go to next image
  74. The following additional key commands are available in *thumbnail mode*:
  75. h,j,k,l Move selection left/down/up/right
  76. Ctrl-j,k Scroll thumbnail grid one window height down/up
  77. The following additional key commands are available in *image mode*:
  78. n,Space Go [count] images forward
  79. p,Backspace Go [count] images backward
  80. [,] Go [count] * 10 images backward/forward
  81. Ctrl-n,p Go to the next/previous frame of a multi-frame image
  82. Ctrl-Space Play/pause animation of a multi-frame image
  83. + Zoom in
  84. - Zoom out
  85. = Set zoom level to 100%, or [count]%
  86. w Fit image into window
  87. h,j,k,l Pan image 1/5 of window width/height or [count] pixels
  88. left/down/up/right (also with arrow keys)
  89. H,J,K,L Pan to left/bottom/top/right image edge
  90. Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
  91. (also with Ctrl-arrow keys)
  92. <,> Rotate image (counter-)clockwise by 90 degrees
  93. s Toggle slideshow
  94. Ctrl-'-' Decrease slideshow delay
  95. Ctrl-'+' Increase slideshow delay
  96. Ctrl-'=' Reset slideshow delay, or set it to [count] seconds
  97. a Toggle anti-aliasing
  98. W Resize window to fit image
  99. Additionally, the following mouse commands are available in *image mode*:
  100. Button1 Go to the next image
  101. Button2 Drag image with mouse while keeping it pressed
  102. Button3 Go to the previous image
  103. Scroll Pan image up/down
  104. Shift+Scroll Pan image left/right
  105. Ctrl+Scroll Zoom in/out