Documentation
¶
Overview ¶
Package keyboard provides helpers to interact with System76 keyboard devices.
Index ¶
Constants ¶
View Source
const RandomColor = "random"
RandomColor is the color name used to pick a randomly generated color code.
Variables ¶
This section is empty.
Functions ¶
func BrightnessFileHandler ¶
BrightnessFileHandler writes a hex value to brightness and returns the bytes written.
func ColorFileHandler ¶
ColorFileHandler writes a string to colorFiles.
func EachPresetColor ¶
func EachPresetColor(cb func(name, value string))
EachPresetColor iterates all the loaded color names and invokes the provided callback for each one.
func GetCurrentBrightness ¶
GetCurrentBrightness reads the brightness value current set and returns its value.
func GetCurrentColors ¶
GetCurrentColors reads the color values currently set and returns their values.
func LoadEmbeddedColors ¶
func LoadEmbeddedColors() error
LoadEmbeddedColors will parse the embedded colors file into memory for looking up color hex codes by name.
Types ¶
Click to show internal directories.
Click to hide internal directories.