mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
25 lines
567 B
Plaintext
25 lines
567 B
Plaintext
(defwidget battery_module []
|
|
(eventbox
|
|
:class "module battery"
|
|
|
|
(box
|
|
:class {battery.critical ? "critical" : battery.full ? "full" : "normal"}
|
|
(box
|
|
:space-evenly false
|
|
:class {battery.plugged ? "plugged" : "unplugged" }
|
|
|
|
(box
|
|
:class "icon"
|
|
:space-evenly false
|
|
|
|
(label
|
|
:class "extra"
|
|
:text {battery.extra_icon})
|
|
(label
|
|
:text {battery.capacity_icon}))
|
|
(label
|
|
:class "value"
|
|
:text "${battery.percent}%"
|
|
)
|
|
))))
|