mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 12:49:30 +00:00
Update cheatsheets
This commit is contained in:
25
linux/maim
Normal file
25
linux/maim
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# maim
|
||||
|
||||
> Screenshot utility.
|
||||
> More information: <https://github.com/naelstrof/maim>.
|
||||
|
||||
- Capture a screenshot and save it to the given path:
|
||||
|
||||
`maim {{path/to/screenshot.png}}`
|
||||
|
||||
- Capture a screenshot of the selected region:
|
||||
|
||||
`maim --select {{path/to/screenshot.png}}`
|
||||
|
||||
- Capture a screenshot of the selected region and save it in the clipboard (requires `xclip`):
|
||||
|
||||
`maim --select | xclip -selection clipboard -target image/png`
|
||||
|
||||
- Capture a screenshot of the current active window (requires `xdotool`):
|
||||
|
||||
`maim --window $(xdotool getactivewindow) {{path/to/screenshot.png}}`
|
||||
Reference in New Issue
Block a user