浏览代码

maim: add page (#4468)

IDF 4 年之前
父节点
当前提交
b0548ef94b
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      pages/linux/maim.md

+ 20 - 0
pages/linux/maim.md

@@ -0,0 +1,20 @@
+# 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}}`