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.

README.md 8.5 KiB

13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
13 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. sxiv
  2. ====
  3. **Simple X Image Viewer**
  4. sxiv is an alternative to feh and qiv. Its only dependencies besides xlib are
  5. imlib2 and giflib. The primary goal for writing sxiv is to create an image
  6. viewer, which only has the most basic features required for fast image viewing
  7. (the ones I want). It has vi key bindings and works nicely with tiling window
  8. managers. Its code base should be kept small and clean to make it easy for you
  9. to dig into it and customize it for your needs.
  10. Features
  11. --------
  12. * Basic image operations, e.g. zooming, panning, rotating
  13. * Customizable key and mouse button mappings (in *config.h*)
  14. * Thumbnail mode: grid of selectable previews of all images
  15. * Ability to cache thumbnails for fast re-loading
  16. * Basic support for multi-frame images
  17. * Load all frames from GIF files and play GIF animations
  18. * Display image information in status bar
  19. Screenshots
  20. -----------
  21. **Image mode:**
  22. ![Image](http://muennich.github.com/sxiv/img/image.png "Image mode")
  23. **Thumbnail mode:**
  24. ![Thumb](http://muennich.github.com/sxiv/img/thumb.png "Thumb mode")
  25. Installation
  26. ------------
  27. sxiv is built using the commands:
  28. $ make
  29. # make install
  30. Please note, that the latter one requires root privileges.
  31. By default, sxiv is installed using the prefix "/usr/local", so the full path
  32. of the executable will be "/usr/local/bin/sxiv".
  33. You can install sxiv into a directory of your choice by changing the second
  34. command to:
  35. # make PREFIX="/your/dir" install
  36. The build-time specific settings of sxiv can be found in the file *config.h*.
  37. Please check and change them, so that they fit your needs.
  38. If the file *config.h* does not already exist, then you have to create it with
  39. the following command:
  40. $ make config.h
  41. Usage
  42. -----
  43. sxiv has two modes of operation: image and thumbnail mode. The default is
  44. image mode, in which only the current image is shown. In thumbnail mode a grid
  45. of small previews is displayed, making it easy to choose an image to open.
  46. **Command line options:**
  47. -b Do not show info bar on bottom of window
  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. -i Read file list from stdin
  55. -n NUM Start at picture NUM
  56. -N NAME Set X window resource name to NAME
  57. -o Write file list to stdout when quitting
  58. -p Pixelize, i.e. turn off image anti-aliasing
  59. -q Be quiet, disable warnings
  60. -r Search given directories recursively for images
  61. -s Scale all images to fit into window
  62. -t Start in thumbnail mode
  63. -v Print version information and exit
  64. -Z Same as `-z 100'
  65. -z ZOOM Scale all images to current zoom level, use ZOOM at startup
  66. **Key mappings:**
  67. q Quit sxiv
  68. Return Switch to thumbnail mode / open selected image
  69. 0-9 Prefix the next command with a number (denoted via [count])
  70. g Go to first image
  71. G Go to the last image, or image number [count]
  72. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  73. window manager)
  74. b Toggle visibility of info bar on bottom of window
  75. A Toggle visibility of alpha-channel, i.e. transparency
  76. r Reload image
  77. R Reload all thumbnails
  78. D Remove image from file list and go to next image
  79. *Thumbnail mode:*
  80. h,j,k,l Move selection left/down/up/right [count] times
  81. Ctrl-j,k Scroll thumbnail grid one window height down/up
  82. *Image mode:*
  83. n,Space Go [count] images forward
  84. p,Backspace Go [count] images backward
  85. [,] Go [count] * 10 images backward/forward
  86. Ctrl-n,p Go to the next/previous frame of a multi-frame image
  87. Ctrl-Space Play/pause animation of a multi-frame image
  88. + Zoom in
  89. - Zoom out
  90. = Set zoom level to 100%, or [count]%
  91. w Fit image into window
  92. e Fit image width to window width
  93. E Fit image height to window height
  94. h,j,k,l Pan image 1/5 of window width/height or [count] pixels
  95. left/down/up/right (also with arrow keys)
  96. H,J,K,L Pan to left/bottom/top/right image edge
  97. Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
  98. (also with Ctrl-arrow keys)
  99. <,> Rotate image (counter-)clockwise by 90 degrees
  100. \,| Flip image horizontally/vertically
  101. a Toggle anti-aliasing
  102. W Resize window to fit image
  103. **Mouse button mappings:**
  104. *Image mode:*
  105. Button1 Go to the next image
  106. Button2 Drag image with mouse while keeping it pressed
  107. Button3 Go to the previous image
  108. Scroll Pan image up/down
  109. Shift+Scroll Pan image left/right
  110. Ctrl+Scroll Zoom in/out
  111. Download & Changelog
  112. --------------------
  113. You can [browse](https://github.com/muennich/sxiv) the source code repository
  114. on GitHub or get a copy using git with the following command:
  115. git clone https://github.com/muennich/sxiv.git
  116. **Stable releases**
  117. **[v1.1](https://github.com/muennich/sxiv/archive/v1.1.tar.gz)**
  118. *(March 30, 2013)*
  119. * Added status bar on bottom of window with customizable content
  120. * New keyboard shortcuts `\`/`|`: flip image vertically/horizontally
  121. * New keyboard shortcut `Ctrl-6`: go to last/alternate image
  122. * Added own EXIF orientation handling, removed dependency on libexif
  123. * Fixed various bugs
  124. **[v1.0](https://github.com/muennich/sxiv/archive/v1.0.tar.gz)**
  125. *(October 31, 2011)*
  126. * Support for multi-frame images & GIF animations
  127. * POSIX compliant (IEEE Std 1003.1-2001)
  128. **[v0.9](https://github.com/muennich/sxiv/archive/v0.9.tar.gz)**
  129. *(August 17, 2011)*
  130. * Made key and mouse mappings fully configurable in config.h
  131. * Complete code refactoring
  132. **[v0.8.2](https://github.com/muennich/sxiv/archive/v0.8.2.tar.gz)**
  133. *(June 29, 2011)*
  134. * POSIX-compliant Makefile; compiles under NetBSD
  135. **[v0.8.1](https://github.com/muennich/sxiv/archive/v0.8.1.tar.gz)**
  136. *(May 8, 2011)*
  137. * Fixed fullscreen under window managers, which are not fully EWMH-compliant
  138. **[v0.8](https://github.com/muennich/sxiv/archive/v0.8.tar.gz)**
  139. *(April 18, 2011)*
  140. * Support for thumbnail caching, only enabled if directory `~/.sxiv/` exists
  141. * Ability to run external commands (e.g. jpegtran, convert) on current image
  142. **[v0.7](https://github.com/muennich/sxiv/archive/v0.7.tar.gz)**
  143. *(February 26, 2011)*
  144. * Sort directory entries when using `-r` command line option
  145. * Hide cursor in image mode
  146. * Full functional thumbnail mode, use Return key to switch between image and
  147. thumbnail mode
  148. **[v0.6](https://github.com/muennich/sxiv/archive/v0.6.tar.gz)**
  149. *(February 16, 2011)*
  150. * Bug fix: Correctly display filenames with umlauts in window title
  151. * Basic support of thumbnails
  152. **[v0.5](https://github.com/muennich/sxiv/archive/v0.5.tar.gz)**
  153. *(February 6, 2011)*
  154. * New command line option: `-r`: open all images in given directories
  155. * New key shortcuts: `w`: resize image to fit into window; `W`: resize window
  156. to fit to image
  157. **[v0.4](https://github.com/muennich/sxiv/archive/v0.4.tar.gz)**
  158. *(February 1, 2011)*
  159. * New command line option: `-F`, `-g`: use fixed window dimensions and apply
  160. a given window geometry
  161. * New key shortcut: `r`: reload current image
  162. **[v0.3.1](https://github.com/muennich/sxiv/archive/v0.3.1.tar.gz)**
  163. *(January 30, 2011)*
  164. * Bug fix: Do not set setuid bit on executable when using `make install`
  165. * Pan image with mouse while pressing middle mouse button
  166. **[v0.3](https://github.com/muennich/sxiv/archive/v0.3.tar.gz)**
  167. *(January 29, 2011)*
  168. * New command line options: `-d`, `-f`, `-p`, `-s`, `-v`, `-w`, `-Z`, `-z`
  169. * More mouse mappings: Go to next/previous image with left/right click,
  170. scroll image with mouse wheel (horizontally if Shift key is pressed),
  171. zoom image with mouse wheel if Ctrl key is pressed
  172. **[v0.2](https://github.com/muennich/sxiv/archive/v0.2.tar.gz)**
  173. *(January 23, 2011)*
  174. * Bug fix: Handle window resizes correctly
  175. * New keyboard shortcuts: `g`/`G`: go to first/last image; `[`/`]`: go 10
  176. images back/forward
  177. * Support for mouse wheel zooming (by Dave Reisner)
  178. * Added fullscreen mode
  179. **[v0.1](https://github.com/muennich/sxiv/archive/v0.1.tar.gz)**
  180. *(January 21, 2011)*
  181. * Initial release