Documentation
¶
Overview ¶
Package powermenu is the native power menu (shell/power_menu): a full-screen dimmed overlay with a centered pane of frosted glass holding lock, log out, suspend, reboot and shut-down buttons, each running its [modules.power] command. The power module's `:menu` binding opens it; the left and right arrows walk the buttons and Escape dismisses it. It enters and leaves through the power surface's transition, and a button's command runs once the menu is gone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
// Config is the live config; commands are read on click.
Config func() *config.Config
// Open maps the overlay.
Open func(cfg app.LayerConfig) (Window, error)
// Run runs a command (spawn.Quiet).
Run func(cmd string) error
// Font shapes the labels; Sheet (the power-menu-* rules) styles
// the overlay.
Font render.Font
Sheet *widget.Stylesheet
}
Deps are the menu's collaborators.
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
Menu is the power menu. Its methods run on the UI loop.