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