A Simple X Image Viewer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

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