A Simple X Image Viewer
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

433 rindas
8.0 KiB

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