1
0
Fork 0

fix(eww): add power information notification

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-31 14:44:36 -05:00
parent acd52b0f5a
commit a1d3d54b0f
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 12 additions and 4 deletions

View file

@ -177,10 +177,11 @@
;; A widget for tracking battery
(defwidget power []
(icon-module :class "power"
:icon "⏻"
:visible true
(literal :content {battery_level})))
(button :onclick "scripts/powernotify"
(icon-module :class "power"
:icon "⏻"
:visible true
(literal :content {battery_level}))))
;; A widget for tracking time and date
(defwidget timedate []