Public Repository

Last pushed: 2 years ago
Short Description
byzanz-record - record your desktop session to an animated GIF
Full Description

All gif are dumped in a folder : /tmp/byzanz

[cdelgehier@centos7 ~]$ type byzanz byzanz-window byzanz-region xrectsel
byzanz is a function
byzanz () 
{ 
    mkdir $HOME/byzanz 2> /dev/null;
    xhost + > /dev/null;
    docker run --rm -it --net=host -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/byzanz:/tmp/byzanz -e DISPLAY=unix$DISPLAY $REPO/byzanz "$@"
}

byzanz-window is a function
byzanz-window () 
{ 
    byzanz $(xwininfo | awk '
        /Absolute upper-left X/ { x = $4 }
        /Absolute upper-left Y/ { y = $4 }
        /Width/                 { w = $2 }
        /Height/                { h = $2 }
        END                     { print "-x", x, "-y", y, "-w", w, "-h", h }
        ') -v "$@"
}

byzanz-region is a function
byzanz-region () 
{ 
    byzanz $(xrectsel "--x=%x --y=%y --width=%w --height=%h") "$@"
}

xrectsel  is a function
xrectsel () 
{ 
    xhost + > /dev/null;
    docker run --rm -it --net=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY $REPO/xrectsel "$@"
}
  • record a window

    [cdelgehier@centos7 ~]$ byzanz-window recording-$(date +%Y-%m-%d_%H-%M-%S).gif
    
  • record a zone

    [cdelgehier@centos7 ~]$ byzanz --duration=15 \
    --x=100 --y=100 \
    --height=200 --width=200 \
    recording-$(date +%Y-%m-%d_%H-%M-%S).gif
    
Docker Pull Command
Owner
cdelgehier