feat: nb add battery max charge option and quick change for it

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-12 12:01:56 +01:00
parent 8f2a1e1357
commit 92a216c920
5 changed files with 136 additions and 73 deletions

View file

@ -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,

View file

@ -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;