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.
 
 
 
 
 
 

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