Add battery alert colour
This commit is contained in:
parent
921a9bb2f1
commit
584ae6489b
2 changed files with 5 additions and 1 deletions
|
@ -122,3 +122,7 @@ window, tooltip {
|
|||
color: $primary;
|
||||
}
|
||||
|
||||
.alert {
|
||||
color: $alert;
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
(defpoll battery :initial "-" :interval 30 "~/.config/eww/scripts/get-battery")
|
||||
(defwidget battery []
|
||||
(label_value :text {battery.charging ? "" : battery.icon} :value "${battery.charge}%"))
|
||||
(label_value :text {battery.charging ? "" : battery.icon} :value "${battery.charge}%" :value_class {battery.charge < 30 ? "alert" : ""}))
|
||||
|
||||
|
||||
(defpoll shader :intiial "" :interval 60 "hyprshade current")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue