feat: nb add battery max charge option and quick change for it
This commit is contained in:
parent
8f2a1e1357
commit
92a216c920
5 changed files with 136 additions and 73 deletions
|
|
@ -33,7 +33,7 @@
|
|||
"cpu",
|
||||
"custom/left-arrow-light",
|
||||
"custom/left-arrow-dark",
|
||||
"battery",
|
||||
"custom/battery",
|
||||
"custom/left-arrow-light",
|
||||
"custom/left-arrow-dark",
|
||||
"disk",
|
||||
|
|
@ -109,39 +109,11 @@
|
|||
"interval": 5,
|
||||
"format": " {usage:2}%"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": {
|
||||
"charging": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"custom/battery": {
|
||||
"exec": "waybar-battery",
|
||||
"return-type": "json",
|
||||
"interval": 10,
|
||||
"on-click": "charge-limit-menu"
|
||||
},
|
||||
"disk": {
|
||||
"interval": 5,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ window#waybar {
|
|||
#pulseaudio,
|
||||
#memory,
|
||||
#cpu,
|
||||
#battery,
|
||||
#custom-battery,
|
||||
#disk,
|
||||
#tray {
|
||||
background: #252525;
|
||||
|
|
@ -62,7 +62,7 @@ window#waybar {
|
|||
#cpu {
|
||||
color: #bd93f9;
|
||||
}
|
||||
#battery {
|
||||
#custom-battery {
|
||||
color: #f1fa8c;
|
||||
}
|
||||
#disk {
|
||||
|
|
@ -77,7 +77,7 @@ window#waybar {
|
|||
#pulseaudio,
|
||||
#memory,
|
||||
#cpu,
|
||||
#battery,
|
||||
#custom-battery,
|
||||
#disk {
|
||||
padding: 0 10px;
|
||||
padding-left: 5px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue