From d5dc280ff2cb4f8cfff8c89670440edea2be10a2 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 1 Jun 2025 19:42:12 +0800 Subject: [PATCH] feat(waybar): add clock module --- modules/home/desktop/status-bar/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/home/desktop/status-bar/default.nix b/modules/home/desktop/status-bar/default.nix index 4818491..8c164bc 100644 --- a/modules/home/desktop/status-bar/default.nix +++ b/modules/home/desktop/status-bar/default.nix @@ -13,7 +13,14 @@ settings = [ { layer = "top"; - modules-right = [ "clock" ]; + modules-right = [ + "battery" + "clock" + ]; + "clock" = { + interval = 1; + format = "{:%F %T}"; + }; } ]; style = # css @@ -21,6 +28,12 @@ window#waybar { background-color: rgba(0, 0, 0, 0); } + + #clock { + padding-top: 5px; + padding-right: 5px; + color: #ffffff; + } ''; }; })