✨ eww: add new features and fix issues
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
(defwindow powermenu []
|
||||
:monitor 0
|
||||
:geometry (geometry :width "100%"
|
||||
:height "100%")
|
||||
|
||||
:stacking "overlay"
|
||||
:namespace "eww-powermenu"
|
||||
:focusable true
|
||||
:exclusive true
|
||||
|
||||
(eventbox :class "outside"
|
||||
:onclick "eww open bar; eww close powermenu"
|
||||
(box :space-evenly true
|
||||
:halign "center"
|
||||
:class "powermenu-container"
|
||||
(button :class "poweroff"
|
||||
:onclick "systemctl poweroff"
|
||||
"")
|
||||
(button :class "reboot"
|
||||
:onclick "systemctl reboot"
|
||||
"")
|
||||
(button :class "logout"
|
||||
:onclick "loginctl kill-user $(sh -c 'echo $USER')"
|
||||
"")
|
||||
(button :class "close"
|
||||
:onclick "eww open bar; eww close powermenu"
|
||||
"")
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user