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.
Key types
PowerMenuDependencies
QtCoreQtGuiQtQuickQtQmlKF6Kirigamiphosphor-themephosphor-shell-widgets
See also
References
- QML module
Phosphor.PowerThis library has no C++ API. Import the module in QML to use it. - API reference → Classes, namespaces and D-Bus interfaces across every library.