add menu for shutdown & reboot to polybar
This commit is contained in:
parent
6e612c51a9
commit
6a3065f947
@ -79,7 +79,7 @@ font-0 = FiraCode Nerd Font Mono;2
|
|||||||
font-1 = Symbols Nerd Font;2
|
font-1 = Symbols Nerd Font;2
|
||||||
|
|
||||||
modules-left = xworkspaces
|
modules-left = xworkspaces
|
||||||
modules-right = filesystem pulseaudio-control-output memory cpu wlan date systray
|
modules-right = filesystem pulseaudio-control-output memory cpu wlan date systray powermenu
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
@ -92,6 +92,29 @@ enable-ipc = true
|
|||||||
|
|
||||||
; override-redirect = true
|
; override-redirect = true
|
||||||
|
|
||||||
|
|
||||||
|
[module/powermenu]
|
||||||
|
type = custom/menu
|
||||||
|
|
||||||
|
label-open = %{T2}%{T-}
|
||||||
|
label-close = %{T2}%{T-}
|
||||||
|
label-open-foreground = ${colors.text}
|
||||||
|
label-open-padding = 1
|
||||||
|
label-separator = " | "
|
||||||
|
label-padding = 2
|
||||||
|
|
||||||
|
menu-0-0 = %{T2}%{T-}
|
||||||
|
menu-0-0-exec = confirm "Shutdown now?" && shutdown now
|
||||||
|
menu-0-0-foreground = ${colors.alert}
|
||||||
|
|
||||||
|
menu-0-1 = %{T2}%{T-}
|
||||||
|
menu-0-1-exec = confirm "Reboot now?" && reboot
|
||||||
|
menu-0-1-foreground = ${colors.yellow}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/systray]
|
[module/systray]
|
||||||
type = internal/tray
|
type = internal/tray
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user