Add Battery
This commit is contained in:
parent
260303c2bc
commit
23d7ea728d
|
@ -5,12 +5,13 @@
|
|||
"spacing": 4,
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"wlr/taskbar"
|
||||
"wlr/taskbar",
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-right": [
|
||||
"battery",
|
||||
"tray",
|
||||
"clock"
|
||||
],
|
||||
|
@ -33,6 +34,16 @@
|
|||
"format": "{:%H:%M}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 60,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"max-length": 25
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 4
|
||||
}
|
||||
|
|
|
@ -28,6 +28,9 @@ window#waybar {
|
|||
#taskbar button.active {
|
||||
background-image: linear-gradient(0deg, @selection, @background-darker);
|
||||
}
|
||||
#battery {
|
||||
padding: 0 10px;
|
||||
}
|
||||
#clock {
|
||||
padding: 0 4px;
|
||||
background: @background;
|
||||
|
|
Loading…
Reference in a new issue