This is Go port of byzanz_window.py. It is very nice python script however it does not work with Python 3.4. So I port it in Go language. I test on XFce4 and LUbuntu. If byzanz-window does not work on your platform please report me via github issue.
% go get github.com/syohex/byzanz-window/cmd/byzanz-window
You can also install binary from here.
- byzanz
- xdotool
- x11-utils(
xprop
,xwininfo
) - libx11-dev
% sudo apt install byzanz xdotool x11-utils libx11-dev
- byzanz
- xdotool
- xorg-x11-utils
- libX11-devel
% sudo yum install byzanz xdotool xorg-x11-utils libX11-devel
% byzanz-window --duration=30 --delay=5 --cursor output.gif
Some option names are changed from original ones.
option | Description | Default |
---|---|---|
-d, --duration | Record seconds | 10 |
--delay | Delay seconds before recording | 1 |
-c, --cursor | Record mouse cursor | false |
-a, --audio | Record audio | false |
-r, --rectangle | Record in rectangle(Linux Only) | false |
zsh completion is here
# Record 20 seconds
% byzanz-window --duration=20 --delay=5 --cursor output.gif
You type Return key, then recording starts after --delay
second(Default: 1 second).
After --duration
seconds(Default: 10 seconds), Gif file is generated.
Have fun!!
% byzanz-window --duration=seconds --delay=seconds output-file.gif
Generated gif is
% byzanz-window --rectangle --duration=seconds --delay=seconds output-file.gif # with '--rectangle' option
Generated gif is