sxiv.1 8.5 KB

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