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.
 
 
 
 
 
 

391 lines
7.2 KiB

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