making battery notify widget have a close button

This commit is contained in:
Chris Cochrun 2023-04-10 13:22:12 -05:00
parent 5d00edbf81
commit e8038dc9ab
2 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,6 @@
(defvar batt_close_hover false)
(defwindow battery
:geometry (geometry :x "0px"
:y "40px"
@ -34,4 +37,8 @@
:value {EWW_BATTERY["BAT1"].capacity}
:orientation "h"
:max 100
:min 0))))
:min 0))
(button
:class "close-icon"
:onclick "eww close battery"
"󰅖")))