A Simple X Image Viewer
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 年前
13 年前
14 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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 environment
  29. 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 support, the giflib library needs to be installed
  38. on your system and you need to execute the following shell commands before
  39. running make:
  40. $ export XFLAGS=-DGIF_SUPPORT
  41. $ export XLIBS=-lgif
  42. Usage
  43. =====
  44. sxiv has two modes of operation: image and thumbnail mode. The default is image
  45. mode, in which only the current image is shown. In thumbnail mode a grid of
  46. 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 key mappings are available; differences between image view and
  64. thumbnail mode are denoted via brackets:
  65. q Quit sxiv
  66. Return Switch to thumbnail mode [open selected image]
  67. n,Space Go to the next image
  68. p,Backspace Go to the previous image
  69. g,G Go to [select] first/last image
  70. [,] Go 10 images backward/forward
  71. Ctrl-n,p Go to the next/previous frame of a multi-frame image
  72. Ctrl-Space Play/pause animation of a multi-frame image
  73. +,= Zoom in
  74. - Zoom out
  75. 0 Set zoom level to 100%
  76. w Fit image into window
  77. h,j,k,l Pan image [move selection] left/down/up/right
  78. (also with arrow keys)
  79. H,J,K,L Pan to left/bottom/top/right image edge
  80. Ctrl-h,j,k,l Pan image one window width/height left/down/up/right
  81. (also with Ctrl-arrow keys)
  82. <,> Rotate image (counter-)clockwise by 90 degrees
  83. W Resize window to fit image
  84. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  85. window manager)
  86. a Toggle anti-aliasing
  87. A Toggle visibility of alpha-channel, i.e. transparency
  88. D Remove image from file list and go to [select] next image
  89. r Reload image
  90. Additionally, the following mouse mappings are available:
  91. Button1 Go to the next image
  92. [select image/open image if it is already selected]
  93. Button2 Drag image with mouse while keeping it pressed
  94. Button3 Go to the previous image
  95. ScrollUp Pan image up [scroll up one thumbnail row]
  96. ScrollDown Pan image down [scroll down one thumbnail row]
  97. Shift+ScrollUp Pan image left
  98. Shift+ScrollDown Pan image right
  99. Ctrl+ScrollUp Zoom in
  100. Ctrl+ScrollDown Zoom out