display

package
v0.0.0-...-e60c870 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustBrightness

func AdjustBrightness(delta int, inc bool) error

func ApplyProfile

func ApplyProfile(profileName string) error

func AutoConfigureDisplay

func AutoConfigureDisplay() string

func GetBrightness

func GetBrightness() (string, error)

func SetBrightness

func SetBrightness(value int) error

func StartScreensaver

func StartScreensaver() *proc.Process

Types

type DisplayConf

type DisplayConf struct {
	DisplayName string
	Resolution  string
	ExtraArgs   string
}

type Profile

type Profile struct {
	Name string
	// contains filtered or unexported fields
}

func (Profile) AppliesTo

func (p Profile) AppliesTo(lookup string) bool

func (Profile) GetDisplay

func (p Profile) GetDisplay(displayName string) *DisplayConf

func (Profile) IsEnabled

func (p Profile) IsEnabled(displayName string) bool

type Profiles

type Profiles []Profile

func LoadProfiles

func LoadProfiles() Profiles

func (Profiles) GetProfile

func (p Profiles) GetProfile(profileName string) *Profile

func (Profiles) SelectProfile

func (p Profiles) SelectProfile(names ...string) *Profile

Jump to

Keyboard shortcuts

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