core

package
v0.0.0-...-266a8ce Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOccupied

func CheckOccupied(X *xgb.Conn, idleTimerDuration uint32, enableMetrics bool) bool

CheckOccupied checks for x11 idle time

func CheckScreen

func CheckScreen(X *xgb.Conn) bool

CheckScreen looks up the current state of DPMS

func SetScreenPower

func SetScreenPower(powerState bool) bool

SetScreenPower toggles dpms states

func UpdateOccupiedStatus

func UpdateOccupiedStatus(sensor service.OccupancySensor, idleTimerDuration uint32, sleepInterval int, enableMetrics bool)

UpdateOccupiedStatus sets occupied status

func UpdateScreenStatus

func UpdateScreenStatus(screen accessory.Lightbulb, sleepInterval int) error

UpdateScreenStatus updates HomeKit Lightbulb screen status

Types

This section is empty.

Jump to

Keyboard shortcuts

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