← 返回命令列表

Linux command

maim 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Capture

maim [path/to/screenshot.png]

Example

maim --select [path/to/screenshot.png]

Example

maim --select | xclip -selection clipboard -target image/png

Example

maim --window $(xdotool getactivewindow) [path/to/screenshot.png]

Example

maim --delay 5 [path/to/screenshot.png]

Example

maim --format jpg --quality 7 [path/to/screenshot.jpg]

说明

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.

参数

-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.

FAQ

What is the maim command used for?

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.

How do I run a basic maim example?

Run `maim [path/to/screenshot.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s, --select do in maim?

Interactively select region to capture