A Simple X Image Viewer
 
 
 
 
 
 

340 lines
6.3 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 Flip
  242. .TP
  243. .B \\\\
  244. Flip image horizontally.
  245. .TP
  246. .B |
  247. Flip image vertically.
  248. .SS Slideshow
  249. .TP
  250. .B s
  251. Toggle slideshow.
  252. .TP
  253. .B Ctrl\-'\-'
  254. Decrease slideshow delay.
  255. .TP
  256. .B Ctrl-'+'
  257. Increase slideshow delay.
  258. .TP
  259. .B Ctrl-'='
  260. Reset slideshow delay to default value, or set it to
  261. .I count
  262. seconds.
  263. .SS Miscellaneous
  264. .TP
  265. .B a
  266. Toggle anti-aliasing.
  267. .TP
  268. .B W
  269. Resize window to fit image.
  270. .SH MOUSE COMMANDS
  271. The following mouse mappings are available in image mode:
  272. .SS Navigate image list
  273. .TP
  274. .B Button1
  275. Go to next image.
  276. .TP
  277. .B Button3
  278. Go to the previous image.
  279. .SS Zooming
  280. .TP
  281. .B Ctrl+ScrollUp
  282. Zoom in.
  283. .TP
  284. .B Ctrl+ScrollDown
  285. Zoom out.
  286. .SS Panning/Moving
  287. .TP
  288. .B Button2
  289. Drag the image with the mouse while keeping this button pressed down.
  290. .TP
  291. .B ScrollUp
  292. Pan image up.
  293. .TP
  294. .B ScrollDown
  295. Pan image down.
  296. .TP
  297. .B Shift+ScrollUp
  298. Pan image left.
  299. .TP
  300. .B Shift+ScrollDown
  301. Pan image right.
  302. .SH THUMBNAIL CACHING
  303. To enable thumbnail caching, please make sure to create the directory
  304. .I ~/.sxiv/
  305. with write permissions. sxiv will then store all thumbnails inside this
  306. directory, but it will not create this directory by itself. It rather uses the
  307. existance of this directory as an affirmation, that the user wants thumbnails
  308. to be cached.
  309. .P
  310. Use the command line option
  311. .I \-c
  312. to keep the cache directory clean by removing all orphaned cache files.
  313. Additionally, run the following command afterwards inside the cache directory
  314. to remove empty subdirectories:
  315. .P
  316. .RS
  317. find \-type d \-empty \-delete
  318. .RE
  319. .P
  320. If the version of
  321. .I find
  322. installed on your local system does not support the \-delete option, then you
  323. can also try the following command:
  324. .P
  325. .RS
  326. find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
  327. .RE
  328. .SH AUTHORS
  329. .EX
  330. Bert Muennich <ber.t at gmx.com>
  331. Dave Reisner <d at falconindy.com>
  332. Fung SzeTat <sthorde at gmail.com>
  333. .EE
  334. .SH HOMEPAGE
  335. .TP
  336. https://github.com/muennich/sxiv
  337. .SH SEE ALSO
  338. .BR feh (1),
  339. .BR qiv (1)