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.
 
 
 
 
 
 

432 lines
7.9 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 [ \-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. .B \-a
  39. Play animations of multi-frame images.
  40. .TP
  41. .BI "\-A " FRAMERATE
  42. Force frame rate on animated images to FRAMERATE
  43. .TP
  44. .B \-b
  45. Do not show info bar on bottom of window.
  46. .TP
  47. .B \-c
  48. Remove all orphaned cache files from the thumbnail cache directory and exit.
  49. .TP
  50. .BI "\-e " WID
  51. Embed sxiv's window into window whose ID is
  52. .IR WID .
  53. .TP
  54. .B \-f
  55. Start in fullscreen mode.
  56. .TP
  57. .BI "\-G " GAMMA
  58. Set image gamma to GAMMA (-32..32).
  59. .TP
  60. .BI "\-g " GEOMETRY
  61. Set window position and size. See section GEOMETRY SPECIFICATIONS of X(7) for
  62. more information on GEOMETRY argument.
  63. .TP
  64. .BI "\-N " NAME
  65. Set the resource name of sxiv's X window to NAME.
  66. .TP
  67. .BI "\-n " NUM
  68. Start at picture number NUM.
  69. .TP
  70. .B \-h
  71. Print brief usage information to standard output and exit.
  72. .TP
  73. .B \-i
  74. Read names of files to open from standard input.
  75. .TP
  76. .B \-o
  77. Write list of all marked files to standard output when quitting. In combination
  78. with
  79. .B \-i
  80. sxiv can be used as a visual filter/pipe.
  81. .TP
  82. .B \-q
  83. Be quiet, disable warnings to standard error stream.
  84. .TP
  85. .B \-r
  86. Search the given directories recursively for images to view.
  87. .TP
  88. .BI "\-S " DELAY
  89. Start in slideshow mode. Set the delay between images to DELAY seconds.
  90. .TP
  91. .BI "\-s " MODE
  92. Set scale mode according to MODE character. Supported modes are: [d]own,
  93. [f]it, [w]idth, [h]eight.
  94. .TP
  95. .B \-t
  96. Start in thumbnail mode.
  97. .TP
  98. .B \-v
  99. Print version information to standard output and exit.
  100. .TP
  101. .B \-Z
  102. The same as `\-z 100'.
  103. .TP
  104. .BI "\-z " ZOOM
  105. Set zoom level to ZOOM percent.
  106. .SH KEYBOARD COMMANDS
  107. .SS General
  108. The following keyboard commands are available in both image and thumbnail mode:
  109. .TP
  110. .BR 0 \- 9
  111. Prefix the next command with a number (denoted via
  112. .IR count ).
  113. .TP
  114. .B q
  115. Quit sxiv.
  116. .TP
  117. .B Return
  118. Switch to thumbnail mode / open selected image in image mode.
  119. .TP
  120. .B f
  121. Toggle fullscreen mode.
  122. .TP
  123. .B b
  124. Toggle visibility of info bar on bottom of window.
  125. .TP
  126. .B Ctrl-x
  127. Send the next key to the external key-handler. See section EXTERNAL KEY HANDLER
  128. for more information.
  129. .TP
  130. .B g
  131. Go to the first image.
  132. .TP
  133. .B G
  134. Go to the last image, or image number
  135. .IR count .
  136. .TP
  137. .B r
  138. Reload image.
  139. .TP
  140. .B D
  141. Remove current image from file list and go to next image.
  142. .TP
  143. .BR Ctrl-h ", " Ctrl-Left
  144. Scroll left one screen width.
  145. .TP
  146. .BR Ctrl-j ", " Ctrl-Down
  147. Scroll down one screen height.
  148. .TP
  149. .BR Ctrl-k ", " Ctrl-Up
  150. Scroll up one screen height.
  151. .TP
  152. .BR Ctrl-l ", " Ctrl-Right
  153. Scroll right one screen width.
  154. .TP
  155. .BR +
  156. Zoom in.
  157. .TP
  158. .B \-
  159. Zoom out.
  160. .TP
  161. .B m
  162. Mark/unmark the current image.
  163. .TP
  164. .B M
  165. Reverse all image marks.
  166. .TP
  167. .B Ctrl-m
  168. Remove all image marks.
  169. .TP
  170. .B N
  171. Go
  172. .I count
  173. marked images forward.
  174. .TP
  175. .B P
  176. Go
  177. .I count
  178. marked images backward.
  179. .TP
  180. .B {
  181. Decrease gamma correction by
  182. .I count
  183. steps.
  184. .TP
  185. .B }
  186. Increase gamma correction by
  187. .I count
  188. steps.
  189. .TP
  190. .B Ctrl-g
  191. Reset gamma correction.
  192. .SS Thumbnail mode
  193. The following keyboard commands are only available in thumbnail mode:
  194. .TP
  195. .BR h ", " Left
  196. Move selection left
  197. .I count
  198. times.
  199. .TP
  200. .BR j ", " Down
  201. Move selection down
  202. .I count
  203. times.
  204. .TP
  205. .BR k ", " Up
  206. Move selection up
  207. .I count
  208. times.
  209. .TP
  210. .BR l ", " Right
  211. Move selection right
  212. .I count
  213. times.
  214. .TP
  215. .B R
  216. Reload all thumbnails.
  217. .SS Image mode
  218. The following keyboard commands are only available in image mode:
  219. .TP
  220. Navigate image list:
  221. .TP
  222. .BR n ", " Space
  223. Go
  224. .I count
  225. images forward.
  226. .TP
  227. .BR p ", " Backspace
  228. Go
  229. .I count
  230. images backward.
  231. .TP
  232. .B [
  233. Go
  234. .I count
  235. * 10 images backward.
  236. .TP
  237. .B ]
  238. Go
  239. .I count
  240. * 10 images forward.
  241. .TP
  242. Handle multi-frame images:
  243. .TP
  244. .B Ctrl-n
  245. Go
  246. .I count
  247. frames of a multi-frame image forward.
  248. .TP
  249. .B Ctrl-p
  250. Go
  251. .I count
  252. frames of a multi-frame image backward.
  253. .TP
  254. .B Ctrl-Space
  255. Play/stop animations of multi-frame images.
  256. .TP
  257. Panning:
  258. .TP
  259. .BR h ", " Left
  260. Scroll image 1/5 of window width or
  261. .I count
  262. pixel left.
  263. .TP
  264. .BR j ", " Down
  265. Scroll image 1/5 of window height or
  266. .I count
  267. pixel down.
  268. .TP
  269. .BR k ", " Up
  270. Scroll image 1/5 of window height or
  271. .I count
  272. pixel up.
  273. .TP
  274. .BR l ", " Right
  275. Scroll image 1/5 of window width or
  276. .I count
  277. pixel right.
  278. .TP
  279. .B H
  280. Scroll to left image edge.
  281. .TP
  282. .B J
  283. Scroll to bottom image edge.
  284. .TP
  285. .B K
  286. Scroll to top image edge.
  287. .TP
  288. .B L
  289. Scroll to right image edge.
  290. .TP
  291. Zooming:
  292. .TP
  293. .B =
  294. Set zoom level to 100%, or
  295. .IR count %.
  296. .TP
  297. .B w
  298. Set zoom level to 100%, but fit large images into window.
  299. .TP
  300. .B W
  301. Fit image to window.
  302. .TP
  303. .B e
  304. Fit image to window width.
  305. .TP
  306. .B E
  307. Fit image to window height.
  308. .TP
  309. Rotation:
  310. .TP
  311. .B <
  312. Rotate image counter-clockwise by 90 degrees.
  313. .TP
  314. .B >
  315. Rotate image clockwise by 90 degrees.
  316. .TP
  317. .B ?
  318. Rotate image by 180 degrees.
  319. .TP
  320. Flipping:
  321. .TP
  322. .B |
  323. Flip image horizontally.
  324. .TP
  325. .B _
  326. Flip image vertically.
  327. .TP
  328. Miscellaneous:
  329. .TP
  330. .B a
  331. Toggle anti-aliasing.
  332. .TP
  333. .B A
  334. Toggle visibility of alpha-channel, i.e. image transparency.
  335. .TP
  336. .B s
  337. Toggle slideshow mode and/or set the delay between images to
  338. .I count
  339. seconds.
  340. .SH MOUSE COMMANDS
  341. The following mouse mappings are available in image mode:
  342. .TP
  343. Navigate image list:
  344. .TP
  345. .B Button1
  346. Go to next image.
  347. .TP
  348. .B Button3
  349. Go to the previous image.
  350. .TP
  351. Panning:
  352. .TP
  353. .B Button2
  354. Drag the image with the mouse while keeping this button pressed down.
  355. .TP
  356. .B ScrollUp
  357. Scroll image up.
  358. .TP
  359. .B ScrollDown
  360. Scroll image down.
  361. .TP
  362. .B Shift+ScrollUp
  363. Scroll image left.
  364. .TP
  365. .B Shift+ScrollDown
  366. Scroll image right.
  367. .TP
  368. Zooming:
  369. .TP
  370. .B Ctrl+ScrollUp
  371. Zoom in.
  372. .TP
  373. .B Ctrl+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. .EE
  423. .SH HOMEPAGE
  424. .EX
  425. https://github.com/muennich/sxiv
  426. .EE
  427. .SH SEE ALSO
  428. .BR feh (1),
  429. .BR qiv (1)