A Simple X Image Viewer
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

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