A Simple X Image Viewer
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

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