Polybar: powermenu ausgebaut

This commit is contained in:
Michael Grote 2022-07-17 13:04:37 +02:00
parent 9474ba7a8a
commit b25966b0d3
2 changed files with 3 additions and 29 deletions

View file

@ -1,26 +0,0 @@
[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

View file

@ -23,13 +23,13 @@ margin-bottom = 5
inherit = bar/defaults
modules-left = i3
modules-center =
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time powermenu
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time
tray-position = right
tray-padding = 2
[bar/unten]
inherit = bar/defaults
bottom = true
modules-left =
modules-left =
modules-center = polywins
modules-right =
modules-right =