Ubuntu中的Gif动画录制工具byzanz

为了在随笔中插入gif动态图Windows系统上可以使用ScreenToGif这个非常好用的小软件,在Ubuntu系统中选择也很多,下面介绍两款Ubuntu系统中的录屏软件:

byzanz

sudo apt-get update
sudo apt-get install byzanz

用法:
byzanz-record [选项...] 录制您的当前桌面会话
 
帮助选项:
-?, --help 显示帮助选项
--help-all 显示全部帮助选项
--help-gtk 显示 GTK+ 选项
 
应用程序选项:
-d, --duration=SECS 动画的时间 (默认:10 秒)
-e, --exec=COMMAND Command to execute and time
--delay=SECS 开始之前的延时(默认:1 秒)
-c, --cursor 录制鼠标光标
-a, --audio 录音
-x, --x=像素 要录制矩形的 X 坐标
-y, --y=像素 要录制矩形的 Y 坐标
-w, --width=像素 录制矩形的宽度
-h, --height=像素 录制矩形的高度
-v, --verbose 详细
--display=显示 要使用的 X 显示  

$ byzanz-record --duration=8 --x=0 --y=0 --width=400 --height=200 out.gif

sudo apt-get install xdotool

xdotool getmouselocation

peek

sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek

$ peek 

参考:

:http://www.linuxidc.com/Linux/2017-12/149744.htm