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.
 
 
 
 
 
 

433 lines
7.9 KiB

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