cmd

package
v0.0.0-...-66b8d2e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Brightness

func Brightness(time time.Time, latitude, longitude float64) float64

Brightness calculates the desired screen brightness for a time and location.

func Execute

func Execute() error

Types

type Monitor

type Monitor struct {
	Name              string
	BrightnessRange   [2]uint32
	CurrentBrightness uint32
	// contains filtered or unexported fields
}

func GetMonitors

func GetMonitors() (monitors []Monitor, close func(), err error)

func (*Monitor) Close

func (m *Monitor) Close() error

func (*Monitor) SetBrightness

func (m *Monitor) SetBrightness(new uint32) error

func (*Monitor) SetBrightnessPercent

func (m *Monitor) SetBrightnessPercent(percent float64) error

func (*Monitor) SetBrightnessRange

func (m *Monitor) SetBrightnessRange(low, high uint32)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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