chore(ironbar): Update upower module
This commit is contained in:
parent
65e21a7d00
commit
a49055c1cc
1 changed files with 12 additions and 7 deletions
|
|
@ -13,9 +13,14 @@
|
||||||
end = [
|
end = [
|
||||||
(lib.mkIf useBatteryModule
|
(lib.mkIf useBatteryModule
|
||||||
{
|
{
|
||||||
type = "upower";
|
type = "battery";
|
||||||
class = "battery";
|
class = "battery";
|
||||||
icon_size = 0;
|
icon_size = 0;
|
||||||
|
format = "{percentage}%";
|
||||||
|
thresholds = {
|
||||||
|
warning = 20;
|
||||||
|
critical = 5;
|
||||||
|
};
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
class = "music";
|
class = "music";
|
||||||
|
|
@ -430,8 +435,8 @@ in {
|
||||||
color: @background;
|
color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* upower */
|
/* battery */
|
||||||
.upower {
|
.battery {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 0px 4px 0px 0px;
|
padding: 0px 4px 0px 0px;
|
||||||
margin: 2px 0px 2px 0px;
|
margin: 2px 0px 2px 0px;
|
||||||
|
|
@ -439,21 +444,21 @@ in {
|
||||||
color: @primary;
|
color: @primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upower .icon {
|
.battery .icon {
|
||||||
opacity: 0.0;
|
opacity: 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upower .label {
|
.battery .label {
|
||||||
margin: 2px 0px 0px -8px;
|
margin: 2px 0px 0px -8px;
|
||||||
color: @primary;
|
color: @primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upower:hover {
|
.battery:hover {
|
||||||
background-color: @secondary-background;
|
background-color: @secondary-background;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-upower {
|
.popup-battery {
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
color: @primary;
|
color: @primary;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue