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.

README.md 3.7 KiB

14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. The following key mappings are available; differences between image view and
  43. thumbnail mode are denoted via brackets:
  44. q Quit sxiv
  45. Return Switch to thumbnail mode [open selected image]
  46. n,Space Go to the next image
  47. p,Backspace Go to the previous image
  48. g/G Go to [select] 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 [move selection] left/down/up/right
  55. (also with arrow keys)
  56. <,> Rotate image (counter-)clockwise by 90 degrees
  57. W Resize window to fit image
  58. f Toggle fullscreen mode (requires an EWMH/NetWM compliant
  59. window manager)
  60. a Toggle anti-aliasing
  61. A Toggle visibility of alpha-channel, i.e. transparency
  62. D Remove image from file list and go to [select] next image
  63. r Reload image
  64. Additionally, the following mouse mappings are available:
  65. Button1 Go to the next image
  66. [select image/open image if it is already selected]
  67. Button2 Drag image with mouse while keeping it pressed
  68. Button3 Go to the previous image
  69. ScrollUp Pan image up [scroll up one thumbnail row]
  70. ScrollDown Pan image down [scroll down one thumbnail row]
  71. Shift+ScrollUp Pan image left
  72. Shift+ScrollDown Pan image right
  73. Ctrl+ScrollUp Zoom in
  74. Ctrl+ScrollDown Zoom out