phosphor-shell-power

Session menu for lock, suspend, hibernate, log out, restart, and shut down.

The Phosphor.Power QML module holds PowerMenu, the panel the shell opens as a modal popout. The shell creates the surface and paints the scrim; this module draws only the panel on it. The six session actions are words in a column on one screen edge, coloured by how destructive they are, each with a one-letter shortcut, and a selection line on the edge slides between them. The column sits on the edge the menu was summoned from, so a menu opened from the bar's power button does not make the pointer cross the screen. Log out, restart, and shut down take two presses: the first arms the action and starts a 3 s countdown, the second confirms. Lock is selected by default. Availability comes from logind through a SessionHost, and an action logind will not perform is hidden rather than greyed out.

Full API →

Key types

PowerMenu
The session menu panel: action column, selection line, two-press confirm for destructive actions.

Dependencies

See also

References