diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index 92663da..b105bd2 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -5,7 +5,7 @@ // Choose the order of the modules "reload_style_on_change": true, "modules-left": ["hyprland/workspaces"], - "modules-center": ["custom/org-clock", "pulseaudio","custom/prayers", "network", "cpu", "memory", "clock", "upower#headset", "custom/music"], + "modules-center": ["custom/org-clock", "custom/daysleft", "pulseaudio","custom/prayers", "network", "cpu", "memory", "clock", "upower#headset", "custom/music"], // "modules-right": ["pulseaudio", "cpu", "backlight", "battery", "clock", "tray", "custom/lock", "custom/power"], "modules-right": ["tray", "custom/lock", "custom/power"], "hyprland/workspaces": { @@ -57,6 +57,12 @@ "on-click": "", "max-length": 50 }, + "custom/daysleft": { + "format": "{} days left!", + "return-type": "json", + "interval": 3600, // Update once an hour + "exec": "echo '{\"text\": \"'$((($(date -d '2026-04-16' +%s) - $(date +%s)) / 86400))'\"}'" + }, "custom/music": { "format": " {}", "escape": true, diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index a3b07e9..aadc2b7 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -39,6 +39,7 @@ #custom-music, #upower.headset, #custom-org-clock, +#custom-daysleft, #cpu, #memory, #network, @@ -102,7 +103,14 @@ #custom-org-clock { color: @yellow; border-radius: 1rem; + margin-right: 1rem; } + +#custom-daysleft { + color: lavender; + border-radius: 1rem; +} + #custom-music { color: @mauve; border-radius: 1rem;