feat: adding time to the middle of waybar

This commit is contained in:
2025-03-04 23:08:13 +00:00
parent 337f34851b
commit d4c0fa2845
2 changed files with 7 additions and 13 deletions

View File

@ -4,8 +4,8 @@
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/music"], "modules-center": ["clock", "custom/music"],
"modules-right": ["pulseaudio", "backlight", "battery", "clock", "tray", "custom/lock", "custom/power"], "modules-right": ["pulseaudio", "backlight", "battery", "tray", "custom/lock", "custom/power"],
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
}, },
@ -23,15 +23,10 @@
"max-length": 50 "max-length": 50
}, },
"clock": { "clock": {
"timezone": "Asia/Dubai", "timezone": "Europe/London",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": " {:%d/%m/%Y}", "format-alt": " {:%d/%m/%Y}",
"format": "{:%H:%M}" "format": "{:%H:%M}"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
}, },
"battery": { "battery": {
"states": { "states": {

View File

@ -50,8 +50,7 @@
#clock { #clock {
color: @blue; color: @blue;
border-radius: 0px 1rem 1rem 0px; border-radius: 1rem;
margin-right: 1rem;
} }
#battery { #battery {
@ -76,8 +75,8 @@
#pulseaudio { #pulseaudio {
color: @maroon; color: @maroon;
border-radius: 1rem 0px 0px 1rem; border-radius: 1rem;
margin-left: 1rem; margin-right: 1rem;
} }
#custom-music { #custom-music {