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.

sxiv.1 7.4 KiB

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