SXIV(1)
π SXIV β the manual page, but make it make sense π
okay bestie, welcome to the sxiv manual page β that's Simple X Image Viewer, from the General Commands Manual, section 1. it's a whole vibe. let's get into it. π¦
β¨ NAME β¨
sxiv β Simple X Image Viewer
like. it views images. on X. that's the whole thing. π
πΈ SYNOPSIS πΈ
sxiv [-abcfhiopqrtvZ] [-A FRAMERATE] [-e WID] [-G GAMMA] [-g GEOMETRY]
[-N NAME] [-n NUM] [-S DELAY] [-s MODE] [-z ZOOM] FILE...
yes, that's a lot of little flags. no, we're not scared of them. keep reading. π«Ά
π DESCRIPTION π
sxiv is a simple image viewer for X.
it has two modes of operation: image mode and thumbnail mode. the default is image mode, in which only the current image is shown. in thumbnail mode a grid of small previews is displayed, making it easy to choose an image to open. literally the thumbnail mode is the main character of picking which pic you want. π₯
π please note: fullscreen mode requires an EWMH/NetWM compliant window manager. no compliant WM, no fullscreen. that's just the rules bestie.
π OPTIONS π
-AFRAMERATE β play animations with a constant frame rate set to FRAMERATE. steady beats only. π-aβ play animations of multi-frame images. yes the gif WILL move.-bβ do not show info bar on bottom of window. bye bar. π¨-cβ remove all orphaned cache files from the thumbnail cache directory and exit. cleanup era. β¨-eWID β embed sxiv's window into window whose ID is WID. nesting doll behavior. πͺ-fβ start in fullscreen mode. immersive. π-GGAMMA β set image gamma to GAMMA (-32..32). tiny numbers, big mood swings.-gGEOMETRY β set window position and size. see section GEOMETRY SPECIFICATIONS ofX(7)for more information on GEOMETRY argument. iykyk.-NNAME β set the resource name of sxiv's X window to NAME. naming your child. πΌ-nNUM β start at picture number NUM. skip to your fav, no shame.-hβ print brief usage information to standard output and exit. help me help you. π-iβ read names of files to open from standard input. also done if FILE is-. pipes girlies rise π«Ά-oβ write list of all marked files to standard output when quitting. in combination with-isxiv can be used as a visual filter/pipe. that's the collab of the century ngl.-pβ enable private mode, in which sxiv does not write any cache or temporary files. ghost mode. no traces. π»-qβ be quiet, disable warnings to standard error stream. shhh. π€«-rβ search the given directories recursively for images to view. dig deep bestie.-SDELAY β start in slideshow mode. set the delay between images to DELAY seconds. DELAY may be a floating point number. (yes,1.5is valid, we love a fractional queen. π)-sMODE β set scale mode according to MODE character. supported modes are:[d]own,[f]it,[w]idth,[h]eight.-tβ start in thumbnail mode. grid supremacy. π²-vβ print version information to standard output and exit. who am i? π-Zβ the same as-z 100. shortcut slay.-zZOOM β set zoom level to ZOOM percent. get up close and personal. π
β¨οΈ KEYBOARD COMMANDS β¨οΈ
π General
the following keyboard commands are available in both image and thumbnail mode:
0-9β prefix the next command with a number (denoted via count). the count girlies stay winning.qβ quit sxiv.Returnβ switch to thumbnail mode / open selected image in image mode. the multitasker. πfβ toggle fullscreen mode.bβ toggle visibility of info bar on bottom of window.Ctrl-xβ send the next key to the external key-handler. see section EXTERNAL KEY HANDLER for more information.gβ go to the first image.Gβ go to the last image, or image number count.rβ reload image.Dβ remove current image from file list and go to next image. brutal. necessary. πCtrl-h,Ctrl-Leftβ scroll left one screen width.Ctrl-j,Ctrl-Downβ scroll down one screen height.Ctrl-k,Ctrl-Upβ scroll up one screen height.Ctrl-l,Ctrl-Rightβ scroll right one screen width.+β zoom in.-β zoom out.mβ mark/unmark the current image.Mβ reverse all image marks. flip the whole roster.Ctrl-Mβ repeat last mark action on all images from the last marked/unmarked up to the current one.Ctrl-mβ remove all image marks. clean slate β¨Nβ go count marked images forward.Pβ go count marked images backward.{β decrease gamma correction by count steps.}β increase gamma correction by count steps.Ctrl-gβ reset gamma correction.
πΌοΈ Thumbnail mode
the following keyboard commands are only available in thumbnail mode:
h,Leftβ move selection left count times.j,Downβ move selection down count times.k,Upβ move selection up count times.l,Rightβ move selection right count times.Rβ reload all thumbnails.
πΈ Image mode
the following keyboard commands are only available in image mode:
Navigate image list:
n,Spaceβ go count images forward.p,Backspaceβ go count images backward.[β go count*10 images backward.]β go count*10 images forward.
Handle multi-frame images:
Ctrl-nβ go count frames of a multi-frame image forward.Ctrl-pβ go count frames of a multi-frame image backward.Ctrl-Spaceβ play/stop animations of multi-frame images.
Panning:
h,Leftβ scroll image 1/5 of window width or count pixel left.j,Downβ scroll image 1/5 of window height or count pixel down.k,Upβ scroll image 1/5 of window height or count pixel up.l,Rightβ scroll image 1/5 of window width or count pixel right.Hβ scroll to left image edge.Jβ scroll to bottom image edge.Kβ scroll to top image edge.Lβ scroll to right image edge.
Zooming:
=β set zoom level to 100%, or count%.wβ set zoom level to 100%, but fit large images into window.Wβ fit image to window.eβ fit image to window width.Eβ fit image to window height.
Rotation:
<β rotate image counter-clockwise by 90 degrees.>β rotate image clockwise by 90 degrees.?β rotate image by 180 degrees.
Flipping:
|β flip image horizontally._β flip image vertically.
Miscellaneous:
aβ toggle anti-aliasing.Aβ toggle visibility of alpha-channel, i.e. image transparency.sβ toggle slideshow mode and/or set the delay between images to count seconds.
π±οΈ MOUSE COMMANDS π±οΈ
the following mouse mappings are available in image mode:
General:
Button3β switch to thumbnail mode.
Navigate image list:
Button1β go to the next image if the mouse cursor is in the right part of the window or to the previous image if it is in the left part.
Panning:
Button2β pan the image according to the mouse cursor position in the window while keeping this button pressed down.
Zooming:
ScrollUpβ zoom in.ScrollDownβ zoom out.
π CONFIGURATION π
the following X resources are supported:
backgroundβ color of the window background and bar foregroundforegroundβ color of the window foreground and bar backgroundfontβ name of Xft bar font
please see xrdb(1) on how to change them. β¨
π¦ STATUS BAR π¦
the information displayed on the left side of the status bar can be replaced with the output of a user-provided script, which is called by sxiv whenever an image gets loaded. the path of this script is $XDG_CONFIG_HOME/sxiv/exec/image-info and the arguments given to it are: 1) path to image file, 2) image width, 3) image height. three little args, one big glow-up. π
there is also an example script installed together with sxiv as /usr/share/sxiv/exec/image-info.
π₯ EXTERNAL KEY HANDLER π₯
additional external keyboard commands can be defined using a handler program located in $XDG_CONFIG_HOME/sxiv/exec/key-handler. the handler is invoked by pressing Ctrl-x. the next key combo is passed as its first argument. passed via stdin are the images to act upon, one path per line: all marked images, if in thumbnail mode and at least one image has been marked, otherwise the current image. sxiv(1) will block until the handler terminates. it then checks which images have been modified and reloads them. ok that's kind of iconic ngl. π
the key combo argument has the following form: "[C-][M-][S-]KEY", where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
there is also an example script installed together with sxiv as /usr/share/sxiv/exec/key-handler.
π THUMBNAIL CACHING π
sxiv stores all thumbnails under $XDG_CACHE_HOME/sxiv/.
use the command line option -c to remove all orphaned cache files. additionally, run the following command afterwards inside the cache directory to remove empty subdirectories:
find . -depth -type d -empty ! -name '.' -exec rmdir {} \;
spring cleaning but make it a one-liner. π§
π AUTHOR π
Bert Muennich <ber.t at posteo.de>
π CONTRIBUTORS π
Bastien Dejean <nihilhill at gmail.com>
Dave Reisner <d at falconindy.com>
Fung SzeTat <sthorde at gmail.com>
Max Voit <mvdev at with-eyes.net>
β HOMEPAGE β
https://github.com/muennich/sxiv
π SEE ALSO π
and that's the whole page bestie!! π«Ά this was sxiv-26, page SXIV(1) β go forth and view images, you absolute legend. periodt. π β¨π
π¦ where this page comes from
- debian bookworm: sxiv 26-1 Β· GPL-2.0-or-later
- debian trixie: sxiv 26-1+b1 Β· GPL-2.0-or-later
- ubuntu jammy: sxiv 26-1 Β· GPL-2.0-or-later
- ubuntu noble: sxiv 26-1build2 Β· GPL-2.0-or-later
- ubuntu questing: sxiv 26-1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms