A Simple X Image Viewer
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 13 gadiem
pirms 13 gadiem
pirms 14 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. Installation
  9. ============
  10. sxiv is built using the commands:
  11. $ make
  12. # make install
  13. Please note, that the latter one requires root privileges.
  14. By default, sxiv is installed using the prefix "/usr/local", so the full path
  15. of the executable will be "/usr/local/bin/sxiv".
  16. You can install it into a directory of your choice by changing the second
  17. command to:
  18. # make PREFIX="/your/dir" install
  19. All build-time specific settings can be found in the file "config.h". Please
  20. check and change them, so that they fit your needs.
  21. Additional features
  22. -------------------
  23. The XFLAGS and XLIBS macros/environment variables control which additional
  24. features (i.e. non-default compile-time features) should be enabled and
  25. included during compilation.
  26. The following table lists the available additional features--the column
  27. *Requires* indicates, which libraries need to be installed for a feature; the
  28. columns *XFLAGS* and *XLIBS* show, what needs to be added to these
  29. macros/environment variables to enable the corresponding feature:
  30. Feature | Requires | XFLAGS | XLIBS
  31. ----------------------------------+----------+----------------+--------
  32. GIF support: Load all frames and | giflib | -DGIF_SUPPORT | -lgif
  33. play animations of GIF files | | |
  34. ----------------------------------+----------+----------------+--------
  35. EXIF support: auto-orientate JPEG | libexif | -DEXIF_SUPPORT | -lexif
  36. files according to their EXIF tag | | |
  37. For instance, to enable GIF and EXIF support, the giflib and libexif libraries
  38. need to be installed on your system and you either need to change the first
  39. build command to:
  40. $ make XFLAGS="-DGIF_SUPPORT -DEXIF_SUPPORT" XLIBS="-lgif -lexif"
  41. Or you need to run the following commands before building sxiv:
  42. $ export XFLAGS="-DGIF_SUPPORT -DEXIF_SUPPORT"
  43. $ export XLIBS="-lgif -lexif"
  44. Usage
  45. =====
  46. sxiv has two modes of operation: image and thumbnail mode. The default is image
  47. mode, in which only the current image is shown. In thumbnail mode a grid of
  48. small previews is displayed, making it easy to choose an image to open.
  49. sxiv supports the following command-line options:
  50. -c Remove all orphaned cache files from thumbnail cache and exit
  51. -d Scale all images to 100%, but fit large images into window
  52. -F Use size-hints to make the window fixed/floating
  53. -f Start in fullscreen mode
  54. -g GEOMETRY Set window position and size
  55. (see section GEOMETRY SPECIFICATIONS of X(7))
  56. -n NUM Start at picture NUM
  57. -p Pixelize, i.e. turn off image anti-aliasing
  58. -q Be quiet, disable warnings
  59. -r Search given directories recursively for images
  60. -s Scale all images to fit into window
  61. -t Start in thumbnail mode
  62. -v Print version information and exit
  63. -Z Same as `-z 100'
  64. -z ZOOM Scale all images to current zoom level, use ZOOM at startup
  65. The following key mappings are available; differences between image view and
  66. thumbnail mode are denoted via brackets:
  67. q Quit sxiv
  68. Return Switch to thumbnail mode [open selected image]
  69. n,Space Go to the next image
  70. p,Backspace Go to the previous image
  71. g,G Go to [select] first/last image
  72. [,] Go 10 images backward/forward
  73. Ctrl-n,p Go to the next/previous frame of a multi-frame image
  74. Ctrl-Space Play/pause animation of a multi-frame image
  75. +,= Zoom in
  76. - Zoom out
  77. 0 Set zoom level to 100%
  78. w Fit image into window
  79. h,j,k,l Pan image [move selection] left/down/up/right
  80. (also with arrow keys)
  81. H,J,K,L Pan to left/bottom/top/right image edge
  82. Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
  83. (also with Ctrl-arrow keys)
  84. <,> Rotate image (counter-)clockwise by 90 degrees
  85. W Resize window to fit image
  86. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  87. window manager)
  88. a Toggle anti-aliasing
  89. A Toggle visibility of alpha-channel, i.e. transparency
  90. D Remove image from file list and go to [select] next image
  91. r Reload image
  92. Additionally, the following mouse mappings are available:
  93. Button1 Go to the next image
  94. [select image/open image if it is already selected]
  95. Button2 Drag image with mouse while keeping it pressed
  96. Button3 Go to the previous image
  97. ScrollUp Pan image up [scroll up one thumbnail row]
  98. ScrollDown Pan image down [scroll down one thumbnail row]
  99. Shift+ScrollUp Pan image left
  100. Shift+ScrollDown Pan image right
  101. Ctrl+ScrollUp Zoom in
  102. Ctrl+ScrollDown Zoom out