A Simple X Image Viewer
 
 
 
 
 
 

324 lines
6.1 KiB

  1. .TH SXIV 1 sxiv\-VERSION
  2. .SH NAME
  3. sxiv \- Simple (or small or suckless) X Image Viewer
  4. .SH SYNOPSIS
  5. .B sxiv
  6. .RB [ \-bcdFfhpqrstvZ ]
  7. .RB [ \-g
  8. .IR GEOMETRY ]
  9. .RB [ \-n
  10. .IR NUM ]
  11. .RB [ \-z
  12. .IR ZOOM ]
  13. .IR FILE ...
  14. .SH DESCRIPTION
  15. sxiv is a simple image viewer for X. It only has the most basic features
  16. required for fast image viewing.
  17. .P
  18. sxiv opens all named
  19. .IR FILE s,
  20. or reads the names of the files to open from standard input, if only a single
  21. hyphen\-minus
  22. .RB ( \- )
  23. is given.
  24. .P
  25. sxiv has two modes of operation: image and thumbnail mode. The default is image
  26. mode, in which only the current image is shown. In thumbnail mode a grid of
  27. small previews is displayed, making it easy to choose an image to open.
  28. .P
  29. sxiv can also cache its thumbnails. Please see the section THUMBNAIL CACHING
  30. for information on how to enable this feature.
  31. .P
  32. Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
  33. manager.
  34. .SH OPTIONS
  35. .TP
  36. .B \-b
  37. Do not show info bar on bottom of window.
  38. .TP
  39. .B \-c
  40. Remove all orphaned cache files from the thumbnail cache directory and exit.
  41. .TP
  42. .B \-d
  43. Scale all images to 100%, but fit large images into window.
  44. .TP
  45. .B \-F
  46. Make the window fixed/floating by setting the minimum and maximum width/height
  47. size-hints to the window width/height.
  48. .TP
  49. .B \-f
  50. Start in fullscreen mode.
  51. .TP
  52. .BI "\-g " GEOMETRY
  53. Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for
  54. more information on
  55. .IR GEOMETRY .
  56. .TP
  57. .BI "\-n " NUM
  58. Start at picture number NUM.
  59. .TP
  60. .B \-h
  61. Print brief usage information to standard output and exit.
  62. .TP
  63. .B \-p
  64. Pixelize images, i.e. turn off anti-aliasing.
  65. .TP
  66. .B \-q
  67. Be quiet, disable warnings to standard error stream.
  68. .TP
  69. .B \-r
  70. Search the given directories recursively for images to view.
  71. .TP
  72. .B \-s
  73. Scale all images to fit into window.
  74. .TP
  75. .B \-t
  76. Start in thumbnail mode.
  77. .TP
  78. .B \-v
  79. Print version information to standard output and exit.
  80. .TP
  81. .B \-Z
  82. The same as `\-z 100'.
  83. .TP
  84. .BI "\-z " ZOOM
  85. Scale all images to the current zoom level, use a zoom level of
  86. .I ZOOM
  87. at startup.
  88. .SH GENERAL KEYBOARD COMMANDS
  89. The following keyboard commands are available in both image and thumbnail mode:
  90. .TP
  91. .B q
  92. Quit sxiv.
  93. .TP
  94. .B Return
  95. Switch to thumbnail mode / open selected image in image mode.
  96. .TP
  97. .BR 0 \- 9
  98. Prefix the next command with a number (denoted via
  99. .IR count ).
  100. .TP
  101. .B g
  102. Go to the first image.
  103. .TP
  104. .B G
  105. Go to the last image, or image number
  106. .IR count .
  107. .TP
  108. .B f
  109. Toggle fullscreen mode.
  110. .TP
  111. .B b
  112. Toggle visibility of info bar on bottom of window.
  113. .TP
  114. .B A
  115. Toggle visibility of alpha-channel, i.e. image transparency.
  116. .TP
  117. .B r
  118. Reload image.
  119. .TP
  120. .B D
  121. Remove current image from file list and go to next image.
  122. .SH THUMBNAIL KEYBOARD COMMANDS
  123. The following keyboard commands are only available in thumbnail mode:
  124. .TP
  125. .BR h ", " Left
  126. Move selection left.
  127. .TP
  128. .BR j ", " Down
  129. Move selection down.
  130. .TP
  131. .BR k ", " Up
  132. Move selection up.
  133. .TP
  134. .BR l ", " Right
  135. Move selection right.
  136. .TP
  137. .BR Ctrl-j ", " Ctrl-Down
  138. Scroll thumbnail grid one window height down.
  139. .TP
  140. .BR Ctrl-k ", " Ctrl-Up
  141. Scroll thumbnail grid one window height up.
  142. .SH IMAGE KEYBOARD COMMANDS
  143. The following keyboard commands are only available in image mode:
  144. .SS Navigate image list
  145. .TP
  146. .BR n ", " Space
  147. Go
  148. .I count
  149. images forward.
  150. .TP
  151. .BR p ", " Backspace
  152. Go
  153. .I count
  154. images backward.
  155. .TP
  156. .B [
  157. Go
  158. .I count
  159. * 10 images backward.
  160. .TP
  161. .B ]
  162. Go
  163. .I count
  164. * 10 images forward.
  165. .SS Handle multi-frame images
  166. .TP
  167. .B Ctrl-n
  168. Go to the next frame of a multi-frame image.
  169. .TP
  170. .B Ctrl-p
  171. Go to the previous frame of a multi-frame image.
  172. .TP
  173. .B Ctrl-Space
  174. Play/pause animation of a multi-frame image.
  175. .SS Zooming
  176. .TP
  177. .BR +
  178. Zoom in.
  179. .TP
  180. .B \-
  181. Zoom out.
  182. .TP
  183. .B =
  184. Set zoom level to 100%, or
  185. .IR count %.
  186. .TP
  187. .B w
  188. Set zoom level to fit image into window.
  189. .SS Panning
  190. .TP
  191. .BR h ", " Left
  192. Pan image 1/5 of window width or
  193. .I count
  194. pixel left.
  195. .TP
  196. .BR j ", " Down
  197. Pan image 1/5 of window height or
  198. .I count
  199. pixel down.
  200. .TP
  201. .BR k ", " Up
  202. Pan image 1/5 of window height or
  203. .I count
  204. pixel up.
  205. .TP
  206. .BR l ", " Right
  207. Pan image 1/5 of window width or
  208. .I count
  209. pixel right.
  210. .TP
  211. .B H
  212. Pan to left image edge.
  213. .TP
  214. .B J
  215. Pan to bottom image edge.
  216. .TP
  217. .B K
  218. Pan to top image edge.
  219. .TP
  220. .B L
  221. Pan to right image edge.
  222. .TP
  223. .BR Ctrl-h ", " Ctrl-Left
  224. Pan image one window width left.
  225. .TP
  226. .BR Ctrl-j ", " Ctrl-Down
  227. Pan image one window height down.
  228. .TP
  229. .BR Ctrl-k ", " Ctrl-Up
  230. Pan image one window height up.
  231. .TP
  232. .BR Ctrl-l ", " Ctrl-Right
  233. Pan image one window width right.
  234. .SS Rotation
  235. .TP
  236. .B <
  237. Rotate image counter-clockwise by 90 degrees.
  238. .TP
  239. .B >
  240. Rotate image clockwise by 90 degrees.
  241. .SS Slideshow
  242. .TP
  243. .B s
  244. Toggle slideshow.
  245. .TP
  246. .B Ctrl\-'\-'
  247. Decrease slideshow delay.
  248. .TP
  249. .B Ctrl-'+'
  250. Increase slideshow delay.
  251. .TP
  252. .B Ctrl-'='
  253. Reset slideshow delay to default value, or set it to
  254. .I count
  255. seconds.
  256. .SS Miscellaneous
  257. .TP
  258. .B a
  259. Toggle anti-aliasing.
  260. .TP
  261. .B W
  262. Resize window to fit image.
  263. .SH MOUSE COMMANDS
  264. The following mouse mappings are available in image mode:
  265. .SS Navigate image list
  266. .TP
  267. .B Button1
  268. Go to next image.
  269. .TP
  270. .B Button3
  271. Go to the previous image.
  272. .SS Zooming
  273. .TP
  274. .B Ctrl+ScrollUp
  275. Zoom in.
  276. .TP
  277. .B Ctrl+ScrollDown
  278. Zoom out.
  279. .SS Panning/Moving
  280. .TP
  281. .B Button2
  282. Drag the image with the mouse while keeping this button pressed down.
  283. .TP
  284. .B ScrollUp
  285. Pan image up.
  286. .TP
  287. .B ScrollDown
  288. Pan image down.
  289. .TP
  290. .B Shift+ScrollUp
  291. Pan image left.
  292. .TP
  293. .B Shift+ScrollDown
  294. Pan image right.
  295. .SH THUMBNAIL CACHING
  296. To enable thumbnail caching, please make sure to create the directory
  297. .I ~/.sxiv/
  298. with write permissions. sxiv will then store all thumbnails inside this
  299. directory, but it will not create this directory by itself. It rather uses the
  300. existance of this directory as an affirmation, that the user wants thumbnails
  301. to be cached.
  302. .P
  303. Use the command line option
  304. .I \-c
  305. to keep the cache directory clean by removing all orphaned cache files.
  306. Additionally, run the following command afterwards inside the cache directory
  307. to remove empty subdirectories:
  308. .P
  309. .RS
  310. find \-type d \-empty \-delete
  311. .RE
  312. .SH AUTHORS
  313. .EX
  314. Bert Muennich <ber.t at gmx.com>
  315. Dave Reisner <d at falconindy.com>
  316. Fung SzeTat <sthorde at gmail.com>
  317. .EE
  318. .SH HOMEPAGE
  319. .TP
  320. https://github.com/muennich/sxiv
  321. .SH SEE ALSO
  322. .BR feh (1),
  323. .BR qiv (1)