keepawake

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package keepawake keeps the screen on, for a till, a recipe or a map.

nimbus native plugin add keep-awake

keepawake.On(ctx)
defer keepawake.Off(ctx)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Off

func Off(ctx context.Context) error

Off lets it sleep again.

func On

func On(ctx context.Context) error

On keeps the screen on while the app is in front.

Types

This section is empty.

Jump to

Keyboard shortcuts

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