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.
 
 
 
 
 
 

354 lines
6.8 KiB

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