swappy(1)
swappy(1) ๐ โ grab and edit on the fly snapshots of a Wayland compositor
โจ NAME โจ
swappy โ grab and edit on the fly snapshots of a Wayland compositor. ๐ฆ
๐ธ SYNOPSIS ๐ธ
swappy [options...]
๐ DESCRIPTION ๐
swappy is a command-line utility to take and edit screenshots of Wayland desktops. Works great with grim, slurp and sway. But can easily work with other screen copy tools that can output a final image to stdout. ๐
swappy will save the annotated images to the config save_dir, see below.
If absent, then if it will try to default to a Desktop folder following this pattern: $XDG_DESKTOP_DIR. If this variable is not set, it will revert to: $XDG_CONFIG_HOME/Desktop. If $XDG_CONFIG_HOME is not set, it will revert to: $HOME/Desktop. ๐ก
โจ OPTIONS โจ
-h,--helpโ Show help message and quit. ๐ฌ-v,--versionโ Show version and quit. ๐ท๏ธ-f,--file <file>โ An image file to load for editing. ๐ผ๏ธ If set to-, read the file from standard input instead. This is grim friendly. ๐-o,--output-file <file>โ Print the final surface to<file>when exiting the application. ๐ค If set to-, prints the final surface to stdout. Note that the Save button will save the image to the configsave_dirparameter, as described in the DESCRIPTION section.
๐ CONFIG FILE ๐
The config file is located at $XDG_CONFIG_HOME/swappy/config or at $HOME/.config/swappy/config. The file follows the GLib conf format.
[Section]
key=value
The following lines can be used as swappy's default:
[Default]
save_dir=$HOME/Desktop
save_filename_format=swappy-%Y%m%d-%H%M%S.png
show_panel=false
line_size=5
text_size=20
text_font=sans-serif
paint_mode=brush
early_exit=false
fill_shape=false
auto_save=false
custom_color=rgba(192,125,17,1)
transparent=false
transparency=50
save_dirโ where swappshots will be saved, can contain env variables, when it does not exist,swappyattempts to create it first, but does not abort if directory creation fails. ๐save_filename_formatโ the filename template, if it contains a date format, this will be parsed into a timestamp. Format is detailed instrftime(3). If this date format is missing, filename will have no timestamp. ๐ฐ๏ธshow_panelโ used to toggle the paint panel on or off upon startup. ๐๏ธline_sizeโ the default line size (must be between1and50). ๐text_sizeโ the default text size (must be between10and50). ๐คtext_fontโ the font used to render text, its format is pango friendly. ๐๏ธpaint_modeโ the mode activated at application start (must be one of:brush|text|rectangle|ellipse|arrow|blur, matching is case-insensitive). ๐๏ธearly_exitโ used to make the application exit after saving the picture or copying it to the clipboard. ๐ชfill_shapeโ used to toggle shape filling (for the rectangle and ellipsis tools) on or off upon startup. โฌauto_saveโ used to toggle auto saving of final buffer tosave_dirupon exit. ๐พcustom_colorโ used to set a default value for the custom color. Accepted formats are: standard name (one of:https://github.com/rgb-x/system/blob/master/root/etc/X11/rgb.txt),#rgb,#rrggbb,#rrrgggbbb,#rrrrggggbbbb,rgb(r,b,g),rgba(r,g,b,a). ๐transparencyโ used to set transparency of everything that is drawn during startup. ๐ซฅtransparentโ used to toggle transparency during startup. ๐ป
๐ฎ KEY BINDINGS ๐ฎ
๐ช LAYOUT
Ctrl+b: Toggle Paint Panel.
๐๏ธ PAINT MODE
b: Switch to Brush.e,t: Switch to Text (Editor).r,s: Switch to Rectangle (Square).c,o: Switch to Ellipse (Circle).a: Switch to Arrow.d: Switch to Blur (dstands for droplet).R: Use Red Color.G: Use Green Color.B: Use Blue Color.C: Use Custom Color.Minus: Reduce Stroke Size.Plus: Increase Stroke Size.Equal: Reset Stroke Size.f: Toggle Shape Filling.T: Toggle Transparency.x,k: Clear Paints (cannot be undone). ๐
๐ง MODIFIERS
Ctrl: Center Shape (Rectangle & Ellipse) based on draw start.
๐ท๏ธ HEADER BAR
Ctrl+z: Undo.Ctrl+Shift+zorCtrl+y: Redo.Ctrl+s: Save to file (see man page).Ctrl+c: Copy to clipboard.EscapeorqorCtrl+w: Quitswappy.
๐ AUTHORS ๐
Written and maintained by jtheoof <contact@jtheoof.me>. See https://github.com/jtheoof/swappy.
That's the whole page, bestie ๐ โ swappy(1) from the General Commands Manual, dated 2025-08-27. Now go take a cute screenshot and slay. โจ๐ธ
๐ฆ where this page comes from
- arch rolling: swappy 1.8.0-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms