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