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.
 
 
 
 
 
 

405 lines
7.6 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 to the next frame of a multi-frame image.
  232. .TP
  233. .B Ctrl-p
  234. Go to the previous frame of a multi-frame image.
  235. .TP
  236. .B Ctrl-Space
  237. Play/stop animations of multi-frame images.
  238. .SS Panning
  239. .TP
  240. .BR h ", " Left
  241. Scroll image 1/5 of window width or
  242. .I count
  243. pixel left.
  244. .TP
  245. .BR j ", " Down
  246. Scroll image 1/5 of window height or
  247. .I count
  248. pixel down.
  249. .TP
  250. .BR k ", " Up
  251. Scroll image 1/5 of window height or
  252. .I count
  253. pixel up.
  254. .TP
  255. .BR l ", " Right
  256. Scroll image 1/5 of window width or
  257. .I count
  258. pixel right.
  259. .TP
  260. .B H
  261. Scroll to left image edge.
  262. .TP
  263. .B J
  264. Scroll to bottom image edge.
  265. .TP
  266. .B K
  267. Scroll to top image edge.
  268. .TP
  269. .B L
  270. Scroll to right image edge.
  271. .SS Zooming
  272. .TP
  273. .B =
  274. Set zoom level to 100%, or
  275. .IR count %.
  276. .TP
  277. .B w
  278. Set zoom level to 100%, but fit large images into window.
  279. .TP
  280. .B W
  281. Fit image to window.
  282. .TP
  283. .B e
  284. Fit image to window width.
  285. .TP
  286. .B E
  287. Fit image to window height.
  288. .SS Rotation
  289. .TP
  290. .B <
  291. Rotate image counter-clockwise by 90 degrees.
  292. .TP
  293. .B >
  294. Rotate image clockwise by 90 degrees.
  295. .TP
  296. .B ?
  297. Rotate image by 180 degrees.
  298. .SS Flipping
  299. .TP
  300. .B |
  301. Flip image horizontally.
  302. .TP
  303. .B _
  304. Flip image vertically.
  305. .SS Miscellaneous
  306. .TP
  307. .B a
  308. Toggle anti-aliasing.
  309. .TP
  310. .B A
  311. Toggle visibility of alpha-channel, i.e. image transparency.
  312. .TP
  313. .B s
  314. Toggle slideshow mode and/or set the delay between images to
  315. .I count
  316. seconds.
  317. .SH MOUSE COMMANDS
  318. The following mouse mappings are available in image mode:
  319. .SS Navigate image list
  320. .TP
  321. .B Button1
  322. Go to next image.
  323. .TP
  324. .B Button3
  325. Go to the previous image.
  326. .SS Panning
  327. .TP
  328. .B Button2
  329. Drag the image with the mouse while keeping this button pressed down.
  330. .TP
  331. .B ScrollUp
  332. Scroll image up.
  333. .TP
  334. .B ScrollDown
  335. Scroll image down.
  336. .TP
  337. .B Shift+ScrollUp
  338. Scroll image left.
  339. .TP
  340. .B Shift+ScrollDown
  341. Scroll image right.
  342. .SS Zooming
  343. .TP
  344. .B Ctrl+ScrollUp
  345. Zoom in.
  346. .TP
  347. .B Ctrl+ScrollDown
  348. Zoom out.
  349. .SH STATUS BAR
  350. The information displayed on the left side of the status bar can be replaced
  351. with the output of a user-provided script, which is called by sxiv whenever an
  352. image gets loaded. The path of this script is
  353. .I $XDG_CONFIG_HOME/sxiv/exec/image-info
  354. and the first argument to this script is the path of the loaded image.
  355. .P
  356. There is also an example script installed together with sxiv as
  357. .IR PREFIX/share/sxiv/exec/image-info .
  358. .SH EXTERNAL KEY HANDLER
  359. Additional external keyboard commands can be defined using a handler program
  360. located in
  361. .IR $XDG_CONFIG_HOME/sxiv/exec/key-handler .
  362. The handler is invoked by pressing
  363. .BR Ctrl-x .
  364. The next key combo is passed as its first argument. The paths of all marked
  365. images--or of the current image, if no image is marked--are passed via stdin,
  366. one file path per line.
  367. sxiv(1) will block until the handler terminates. It then checks which images
  368. have been modified and reloads them.
  369. The key combo argument has the following form: "[C-][M-][S-]KEY",
  370. where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
  371. keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
  372. There is also an example script installed together with sxiv as
  373. .IR PREFIX/share/sxiv/exec/key-handler .
  374. .SH THUMBNAIL CACHING
  375. sxiv stores all thumbnails under
  376. .IR $XDG_CACHE_HOME/sxiv/ .
  377. .P
  378. Use the command line option
  379. .I \-c
  380. to remove all orphaned cache files. Additionally, run the following command
  381. afterwards inside the cache directory to remove empty subdirectories:
  382. .P
  383. .RS
  384. find . \-depth \-type d \-empty ! \-name '.' \-exec rmdir {} \\;
  385. .RE
  386. .SH AUTHOR
  387. .EX
  388. Bert Muennich <ber.t at posteo.de>
  389. .EE
  390. .SH CONTRIBUTORS
  391. .EX
  392. Bastien Dejean <nihilhill at gmail.com>
  393. Dave Reisner <d at falconindy.com>
  394. Fung SzeTat <sthorde at gmail.com>
  395. .EE
  396. .SH HOMEPAGE
  397. .EX
  398. https://github.com/muennich/sxiv
  399. .EE
  400. .SH SEE ALSO
  401. .BR feh (1),
  402. .BR qiv (1)