A Simple X Image Viewer
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.md 5.0 KiB

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