Add Battery

This commit is contained in:
yourfriendoss 2023-11-29 10:49:18 +02:00
parent 260303c2bc
commit 23d7ea728d
2 changed files with 17 additions and 3 deletions

View file

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

View file

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