Skip to content

power ​

Shutdown, reboot, and logout menu.

Add it to your layout with power:

yaml
bar:
  layout:
    - monitor: "*"
      right: [power]

General ​

FieldTypeDefaultDescription
icon-namestring"ld-power-symbolic"Icon name to display.
border-showboolfalseDisplay border around button.
lock-commandstring"loginctl lock-session"Command run by the power menu's Lock button.
logout-commandstring"lys-shell logout"Command run by the power menu's Log out button.
suspend-commandstring"systemctl suspend"Command run by the power menu's Suspend button.
reboot-commandstring"systemctl reboot"Command run by the power menu's Reboot button.
shutdown-commandstring"systemctl poweroff"Command run by the power menu's Shut down button.
show-lockbooltrueShow the Lock button in the power menu.
show-logoutbooltrueShow the Log out button in the power menu.
show-suspendbooltrueShow the Suspend button in the power menu.
show-rebootbooltrueShow the Reboot button in the power menu.
show-shutdownbooltrueShow the Shut down button in the power menu.

Colors ​

FieldTypeDefaultDescription
border-colorColorValue"red"Border color token.
icon-colorColorValue"auto"Icon foreground color. Auto selects based on variant for contrast.
icon-bg-colorColorValue"red"Icon container background color token.

Click actions ​

FieldTypeDefaultDescription
right-clickClickAction""Action on right click.
middle-clickClickAction""Action on middle click.
scroll-upClickAction""Action on scroll up.
scroll-downClickAction""Action on scroll down.
left-clickClickAction":menu"Action on left click. Default opens lys-shell's native power menu (:menu).

Default configuration ​

yaml
modules:
  power:
    icon-name: ld-power-symbolic
    border-show: false
    border-color: red
    icon-color: auto
    icon-bg-color: red
    right-click: ""
    middle-click: ""
    scroll-up: ""
    scroll-down: ""
    left-click: :menu
    lock-command: loginctl lock-session
    logout-command: lys-shell logout
    suspend-command: systemctl suspend
    reboot-command: systemctl reboot
    shutdown-command: systemctl poweroff
    show-lock: true
    show-logout: true
    show-suspend: true
    show-reboot: true
    show-shutdown: true

Released under the MIT License.