refactor(waybar): used modules for the two bars

This commit is contained in:
Sergio Laín 2025-09-17 23:48:44 +02:00
parent a1dff8f66e
commit a7162e5302
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
4 changed files with 30 additions and 32 deletions

View file

@ -3,16 +3,16 @@
"~/.config/waybar/modules/custom-music.jsonc", "~/.config/waybar/modules/custom-music.jsonc",
"~/.config/waybar/modules/custom-notifications.jsonc", "~/.config/waybar/modules/custom-notifications.jsonc",
"~/.config/waybar/modules/hyprland-workspaces.jsonc", "~/.config/waybar/modules/hyprland-workspaces.jsonc",
"~/.config/waybar/modules/clock-1.jsonc",
"~/.config/waybar/modules/hyprland-language.jsonc", "~/.config/waybar/modules/hyprland-language.jsonc",
"~/.config/waybar/modules/tray.jsonc", "~/.config/waybar/modules/tray.jsonc",
"~/.config/waybar/modules/network.jsonc",
], ],
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/music"], "modules-center": ["custom/music"],
"modules-right": [ "modules-right": [
"tray", "tray",
"hyprland/language", "hyprland/language",
"clock#cl1", "network",
"custom/notifications", "custom/notifications",
], ],
} }

View file

@ -6,15 +6,15 @@
"~/.config/waybar/modules/temperature-gpu.jsonc", "~/.config/waybar/modules/temperature-gpu.jsonc",
"~/.config/waybar/modules/temperature-cpu.jsonc", "~/.config/waybar/modules/temperature-cpu.jsonc",
"~/.config/waybar/modules/hyprland-workspaces.jsonc", "~/.config/waybar/modules/hyprland-workspaces.jsonc",
"~/.config/waybar/modules/network.jsonc", "~/.config/waybar/modules/clock.jsonc",
], ],
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-right": [ "modules-right": [
"network",
"memory", "memory",
"cpu", "cpu",
"temperature#cpu", "temperature#cpu",
"custom/gpu-usage", "custom/gpu-usage",
"temperature#gpu", "temperature#gpu",
"clock#cl1",
], ],
} }

View file

@ -1,28 +0,0 @@
{
"clock#cl2": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#eed49f'><b>{}</b></span>",
"days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
},
},
"format": "{:%H:%M  - %A, %B %d, %Y  }",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
},
}

View file

@ -27,4 +27,30 @@
}, },
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23", "on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
}, },
"clock#cl2": {
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#eed49f'><b>{}</b></span>",
"days": "<span color='#cad3f5'><b>{}</b></span>",
"weeks": "<span color='#8aadf4'><b>W{}</b></span>",
"weekdays": "<span color='#8bd5ca'><b>{}</b></span>",
"today": "<span color='#ed8796'><b><u>{}</u></b></span>",
},
},
"format": "{:%H:%M  - %A, %B %d, %Y  }",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
"on-click-middle": "thunderbird -calendar && hyprctl dispatch workspace 23",
},
} }