DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Ubuntu上的截图和标记工具


首先安装shutter, pinta和CopyQ:sudo apt install pinta shutter, CopyQ的安装见dsnote "CopyQ Notes"。

创建如下可执行脚本(文件名'tss')并加入到$PATH中:

1
2
3
4
5
#!/bin/bash
# taking screenshots
shutter -s "$@" -e -o ~/temp/screenshot.png
pinta ~/temp/screenshot.png
copyq write image/png - < ~/temp/screenshot.png

现在执行tss命令,进入鼠标选择截图区域状态, 确定后进入图像编辑页面,可以在上面做标记, 编辑完保存图片,关闭pinta,图像被copy到剪贴板上。

由于脚本中使用了"$@",在tss后面可以加上shutter的命令行参数, 例如tss -d 5,可以实现延时5秒截图。 另外还可以定义是否捕捉鼠标等,详见shutter -h.



Published

Apr 11, 2017

Last Updated

Apr 11, 2017

Category

Tech

Tags

  • mark 1
  • screenshot 3
  • ubuntu 61

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor