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.
 
 
 
 
 
 

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