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