Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBrightness ¶
SetBrightness sets the display brightness to a value between 0 and 100.
func SetNightShift ¶
SetNightShift enables or disables Night Shift.
Types ¶
type BrightnessInfo ¶
type BrightnessInfo struct {
Level float64 `json:"level"`
}
BrightnessInfo holds brightness level.
func GetBrightness ¶
func GetBrightness() (*BrightnessInfo, error)
GetBrightness returns the current display brightness.
type Info ¶
type Info struct {
Name string `json:"name"`
Resolution string `json:"resolution"`
RefreshRate string `json:"refresh_rate"`
Vendor string `json:"vendor"`
Main bool `json:"main"`
}
Info holds display information.
type NightShiftInfo ¶
NightShiftInfo holds Night Shift status.
func GetNightShift ¶
func GetNightShift() (*NightShiftInfo, error)
GetNightShift returns the current Night Shift status.
Click to show internal directories.
Click to hide internal directories.