command

package
v0.0.0-...-a534134 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Identifier = "command"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// Format string used to render output on the bar
	Format   string `json:"format"`
	Instance string `json:"instance"`
	Command  string `json:"command"`

	// Color to render on the bar.
	Color string `json:"color"`

	// Identifier for receiving click events
	Name string `json:"name"`
}

func (Command) Generate

func (g Command) Generate() (out []i3.Output, err error)

type CommandBuilder

type CommandBuilder struct {
	Interval string  `json:"interval"`
	Color    string  `json:"color"`
	Options  Command `json:"options"`
}

func (CommandBuilder) Build

func (b CommandBuilder) Build(c config.Config) (p i3.Producer, err error)

Jump to

Keyboard shortcuts

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