hw

package
v0.0.0-...-9c7c33c Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBrightnessCommandRoot

func GetBrightnessCommandRoot(path string) (string, error)

Types

type BrightnessController

type BrightnessController struct {
	// contains filtered or unexported fields
}

func NewBrightnessController

func NewBrightnessController(
	brightnessCmd string,
	actualBrightnessCmd string,
	maxBrightnessCmd string,
) *BrightnessController

func (*BrightnessController) CurrentBrightness

func (b *BrightnessController) CurrentBrightness() (int, error)

func (*BrightnessController) MaxBrightness

func (b *BrightnessController) MaxBrightness() (int, error)

func (*BrightnessController) SetBrightness

func (b *BrightnessController) SetBrightness(value int) error

func (*BrightnessController) SetPercentage

func (b *BrightnessController) SetPercentage(value int) (currentValue, maxValue int, err error)

Jump to

Keyboard shortcuts

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