Help us shape the future of Go! Take the 2026 Go Developer Survey

byzanz

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2015 License: GPL-3.0 Imports: 3 Imported by: 2

README

byzanz-window.go

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.

Installation

% go get github.com/syohex/byzanz-window/cmd/byzanz-window

Requirement Packages

Ubuntu

  • byzanz
  • xdotool
  • x11-utils(xprop, xwininfo)

Example

% byzanz-window --duration=30 --delay=5 --cursor output.gif

Options

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

Recording Steps

1. Execute byzanz-window
# Record 20 seconds
% byzanz-window --duration=20 --delay=5 --cursor output.gif
2. Select Window

select window

3. Start recording

You type Return key, then recording starts after --delay second(Default: 1 second).

4. Gif is generated

After --duration seconds(Default: 10 seconds), Gif file is generated.

Have fun!!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rectangle

type Rectangle struct {
	Width  int
	Height int
	X      int
	Y      int
}

func SelectWindow

func SelectWindow() (*Rectangle, error)

Directories

Path Synopsis
cmd
byzanz-window command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL