From 9ef89b76d6a3b980232cbb80d47926e73a500a0f Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Mon, 11 Aug 2025 22:10:53 +0200 Subject: [PATCH] [waybar] show nb files in secondbrain entree --- waybar/config.jsonc | 10 ++++++++-- waybar/style.css | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index fae05d8..ee2e132 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -27,10 +27,11 @@ "modules-right": [ // informational "custom/weather", - "sway/language", + "custom/nbfiles", + //"sway/language", "custom/github", "custom/clipboard", - "custom/zeit", + // "custom/zeit", // "cpu", // "temperature", "battery", @@ -400,5 +401,10 @@ "interval": 10, "exec": "/home/krichtof/src/watson/waybar-watson.py" + }, + "custom/nbfiles": { + "format": "{text}", + "interval": 30, + "exec": "ls /home/krichtof/secondbrain/entree | wc -l" } } diff --git a/waybar/style.css b/waybar/style.css index 743481d..6f5a432 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -2,6 +2,9 @@ #custom-uair.resumed { color: #f87171; } +#custom-watson.nothing { + color: #f87171; +} /* ============================================================================= * * Waybar configuration