dotfiles/polybar/conf.d/mod_powermenu

26 lines
792 B
Text

[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = #powermenu.open.1
menu-0-1 = power off
menu-0-1-exec = #powermenu.open.2
menu-0-2 = suspend
menu-0-2-exec = #powermenu.open.3
menu-0-3 = hibernate
menu-0-3-exec = #powermenu.open.4
menu-1-0 = reboot
menu-1-0-exec = reboot
menu-2-0 = power off
menu-2-0-exec = poweroff
menu-3-0 = suspend
menu-3-0-exec = i3lock --ignore-empty-password --color 000000 && systemctl suspend
menu-4-0 = hibernate
menu-4-0-exec = i3lock --ignore-empty-password --color 000000 && systemctl hibernate