updated battery componant

This commit is contained in:
2026-05-01 23:13:50 +01:00
parent 38a9747c31
commit 62074e3372
2 changed files with 45 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"modules-left": ["clock#date", "clock", "custom/launcher"],
"modules-center": [],
"modules-left": ["battery", "clock#date", "clock", "custom/launcher"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["network", "bluetooth", "pulseaudio", "custom/power"],
"sway/mode": {
@@ -100,5 +100,40 @@
"format":" ",
"tooltip-format": "Click To Launch Bitwarden",
"on-click": "exec bitwarden-desktop"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}%",
"format-plugged": "{icon} {capacity}%",
"format-alt": "{time} {icon}",
"format-full": "󰁹 {capacity}%",
"format-icons": {
"default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂"],
"charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋"],
"plugged": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋"]
}
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"urgent": "",
"active": "",
"default": ""
},
"persistent-workspaces": {
"1": [],
"2": [],
"3": []
},
"sort-by-number": true
}
}

View File

@@ -114,6 +114,12 @@ window#waybar {
#temperature.critical {
color: #cc3436;
}
#workspaces {
padding: 5px 13px 5px 10px;
background-color: rgba(0,43,51,0.85);
border-radius: 20px;
margin: 5px 3px;
}
/*-----Colors----*/
/*
*rgba(0,85,102,1),#005566 --> Indigo(dye)