LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

maim

lightweight screenshot utility for X11

TLDR

Capture full screenshot
$ maim [path/to/screenshot.png]
copy
Capture selected region
$ maim --select [path/to/screenshot.png]
copy
Capture to clipboard
$ maim --select | xclip -selection clipboard -target image/png
copy
Capture active window
$ maim --window $(xdotool getactivewindow) [path/to/screenshot.png]
copy
Capture with a delay of 5 seconds
$ maim --delay 5 [path/to/screenshot.png]
copy
Capture as JPEG with quality setting
$ maim --format jpg --quality 7 [path/to/screenshot.jpg]
copy

SYNOPSIS

maim [options] [file]

DESCRIPTION

maim (make image) is a lightweight screenshot utility for X11. It can capture the entire screen, a selected region, or a specific window, saving in various formats.

PARAMETERS

-s, --select

Interactively select region to capture
-i, --window ID
Capture specific window by ID
-d, --delay SECONDS
Delay before capture
-u, --hidecursor
Hide cursor in screenshot
-g, --geometry WxH+X+Y
Set capture geometry
-f, --format FORMAT
Output format (png, jpg, bmp, webp). Auto-detected from filename, defaults to png.
-m, --quality QUALITY
Compression quality (1-10). For lossy formats, lower means smaller file size and lower quality.
-B, --capturebackground
Capture content beneath the specified window as well.
-q, --quiet
Disable any unnecessary stderr output.
-k, --nokeyboard
Disable the ability to cancel selections with the keyboard.
-l, --highlight
Highlight the selection instead of outlining it.

INSTALL

sudo apt install maim
copy
sudo dnf install maim
copy
sudo pacman -S maim
copy
sudo apk add maim
copy
sudo zypper install maim
copy
nix profile install nixpkgs#maim
copy

CAVEATS

X11 only, does not work with Wayland. Region selection requires slop. Window capture often used with xdotool.

SEE ALSO

scrot(1), import(1), grim(1), flameshot(1), slop(1), xdotool(1), xclip(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid