Skip to main content
Version: 1.5

Screenshot

███████╗ ██████╗██████╗ ███████╗███████╗███╗   ██╗
██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝████╗  ██║
███████╗██║     ██████╔╝█████╗  █████╗  ██╔██╗ ██║
╚════██║██║     ██╔══██╗██╔══╝  ██╔══╝  ██║╚██╗██║
███████║╚██████╗██║  ██║███████╗███████╗██║ ╚████║
╚══════╝ ╚═════╝╚═╝  ╚═╝╚══════╝╚══════╝╚═╝  ╚═══╝

The dms screenshot command captures screenshots from Wayland displays with support for multiple capture modes, output formats, and clipboard integration.

Quick Start

# Region select, save file + clipboard
dms screenshot

# Full screen of focused output
dms screenshot full

# Clipboard only
dms screenshot --no-file

Press Escape to cancel region selection at any time.

Capture Modes

ModeCommandDescription
regiondms screenshotSelect a region interactively (default)
fulldms screenshot fullCapture the focused output
alldms screenshot allCapture all outputs combined
outputdms screenshot output -o NAMECapture a specific output by name
windowdms screenshot windowCapture the focused window (Hyprland, Mango, niri)
lastdms screenshot lastCapture the last selected region
scrolldms screenshot scrollSelect a region, then scroll to capture a stitched tall image

List Available Outputs

dms screenshot list

Output Formats

Use --format or -f to specify the output format. Default is png.

FormatFlagNotes
PNG-f pngDefault, lossless
JPEG-f jpgUse -q to set quality (1-100)
PPM-f ppmRaw format
# JPEG with custom quality
dms screenshot -f jpg -q 85

Options

FlagShortDescription
--cursorInclude cursor in screenshot: on/off (default: off)
--stdoutOutput to stdout (for piping)
--dir-dOutput directory
--filenameOutput filename (auto-generated if empty)
--format-fOutput format: png, jpg, ppm (default: png)
--quality-qJPEG quality 1-100 (default: 90)
--output-oOutput name for 'output' mode
--intervalScroll mode capture interval in ms, 30-1000 (default: 45)
--no-clipboardDon't copy to clipboard
--no-fileDon't save to file
--no-notifyDon't show notification
--config-cCustom DMS config directory path
--help-hShow help

Examples

Region Selection

# Interactive selection, save file + clipboard
dms screenshot

# File only, no clipboard
dms screenshot --no-clipboard

# Clipboard only, no file
dms screenshot --no-file

Full Screen Capture

# Focused output
dms screenshot full

# All outputs combined
dms screenshot all

# Specific output
dms screenshot output -o DP-1

Focused Window

dms screenshot window

Supported on Hyprland, Mango, and niri. On niri the capture is also placed in the clipboard by the compositor itself.

Scrolling Capture

# Select a region, then scroll the content beneath it
dms screenshot scroll

# Slower capture cadence
dms screenshot scroll --interval 250

Select a region, then scroll the content beneath with the mouse wheel or touchpad. Frames are stitched into one tall image continuously while you scroll — revisited content is never duplicated, and scrolling up past the starting point extends the image upward. Finish with the on-screen done button or Enter; cancel with cancel or Escape.

Content jumped past faster than capture can follow is skipped rather than stitched incorrectly. The cursor is never included in frames, and rotated outputs are not supported. On Hyprland the keyboard stays with the application during capture, so keyboard scrolling (Page Down, arrow keys) works there too.

Repeat Last Capture

# Capture the same region as before
dms screenshot last

Include Cursor

dms screenshot full --cursor on

Pipe to Editor

# Send to swappy for annotation
dms screenshot --stdout | swappy -f -

Custom Output Location

# Save to specific directory
dms screenshot -d ~/Pictures/screenshots

# Custom filename
dms screenshot --filename my-screenshot.png