diff --git a/waybar/config b/waybar/config
index 37c063d..b0ea6f7 100644
--- a/waybar/config
+++ b/waybar/config
@@ -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": {
@@ -74,7 +74,7 @@
"format-on": " On",
"format-off": " Off",
"format-disabled": " Off",
- "format-connected": " {device_alias}",
+ "format-connected": " {device_alias}",
"format-connected-battery": " {device_alias} {device_battery_percentage}%",
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
@@ -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
}
-}
\ No newline at end of file
+}
diff --git a/waybar/style.css b/waybar/style.css
index 5f11b99..b88192e 100644
--- a/waybar/style.css
+++ b/waybar/style.css
@@ -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)