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, "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
} }
} }

View file

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