arrangements

package
v0.0.0-...-0096a23 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arrangement

type Arrangement struct {
	Windows []Window
	Name    string
}

Arrangement represent a named preconfigured layout containing a []Window.

type Arrangements

type Arrangements []Arrangement

Arrangements is a list of arrangements

func NewFromFile

func NewFromFile(filename string) (*Arrangements, error)

NewFromFile reads the input file and attempts to unmarshal the contents into a *[]WindowPreferences.

func (*Arrangements) ToJSONFile

func (a *Arrangements) ToJSONFile(filename string) error

ToJSONFile writes a *[]WindowPreferences to the input file name, creating it if it doesn't exist.

type Window

type Window struct {
	NameRegex          string
	NameExclusionRegex string
	X                  int32
	Y                  int32
	Cx                 int32
	Cy                 int32
}

Window represents a singular application window and it's desired position keyed by a Name Regex. An exclusion name regex can be used for more fine-grained filtering

Jump to

Keyboard shortcuts

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