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

14 年前
14 年前
14 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. sxiv: Simple (or small or suckless) X Image Viewer
  2. sxiv is a really simple alternative to feh and qiv. Its only dependency besides
  3. xlib is imlib2. The primary goal for writing sxiv is to create an image viewer,
  4. which only implements the most basic features required for fast image viewing.
  5. It works nicely with tiling window managers and its code base should be kept
  6. small and clean to make it easy for you to dig into it and customize it for
  7. 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. # PREFIX="/your/dir" make 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. Usage
  22. -----
  23. sxiv has two modes of operation: image and thumbnail mode. The default is image
  24. mode, in which only the current image is shown. In thumbnail mode a grid of
  25. small previews is displayed, making it easy to choose an image to open.
  26. sxiv supports the following command-line options:
  27. -a Display all given files, do not filter out unsupported files
  28. (shorter startup time for long file list or slow file types)
  29. -d Scale all images to 100%, but fit large images into window
  30. -F Use size-hints to make the window fixed/floating
  31. -f Start in fullscreen mode
  32. -g GEOMETRY Set window position and size
  33. (see section GEOMETRY SPECIFICATIONS of X(7))
  34. -p Pixelize, i.e. turn off image anti-aliasing
  35. -q Be quiet, disable warnings
  36. -r Search given directories recursively for images
  37. -s Scale all images to fit into window
  38. -t Start in thumbnail mode
  39. -v Print version information and exit
  40. -Z Same as `-z 100'
  41. -z ZOOM Scale all images to current zoom level, use ZOOM at startup
  42. Use the following keys to control the basic behaviour of sxiv:
  43. q Quit sxiv
  44. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  45. window manager)
  46. Inside image view mode, the following key mappings are available:
  47. n,Space Go to the next image
  48. p,Backspace Go to the previous image
  49. g/G Go to first/last image
  50. [/] Go 10 images backward/forward
  51. +,= Zoom in
  52. - Zoom out
  53. 0 Set zoom level to 100%
  54. w Fit image into window
  55. h,j,k,l Pan image left/down/up/right (also with arrow keys)
  56. <,> Rotate image (counter-)clockwise by 90 degrees
  57. W Resize window to fit image
  58. a Toggle anti-aliasing
  59. A Toggle visibility of alpha-channel, i.e. transparency
  60. r Reload image
  61. D Remove image from file list and go to next image
  62. Return Switch to thumbnail mode
  63. Additionally, the image view offers the following mouse commands:
  64. Button1 Go to the next image
  65. Button2 Drag image with mouse while keeping it pressed
  66. Button3 Go to the previous image
  67. ScrollUp Pan image up
  68. ScrollDown Pan image down
  69. Shift+ScrollUp Pan image left
  70. Shift+ScrollDown Pan image right
  71. Ctrl+ScrollUp Zoom in
  72. Ctrl+ScrollDown Zoom out
  73. In thumbnail mode, the following key and mouse mappings are available:
  74. h,j,k,l Move selection left/down/up/right (also with arrow keys)
  75. g/G Move selection to first/last image
  76. D Remove selected image from file list and select next image
  77. Return Open selected image
  78. Button1 Select image/open image if it is already selected
  79. ScrollUp Scroll up one row
  80. ScrollDown Scroll down one row