From dca146d6d0a746e54a7ca08376426a75d4af2c8b Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 29 Jun 2023 11:13:24 +0200 Subject: [PATCH] fixed i3status-rust bar --- nixos/components/gui/home-manager/i3.nix | 34 +++++++++++++++++++----- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/nixos/components/gui/home-manager/i3.nix b/nixos/components/gui/home-manager/i3.nix index 8578586..3a1595c 100644 --- a/nixos/components/gui/home-manager/i3.nix +++ b/nixos/components/gui/home-manager/i3.nix @@ -48,25 +48,45 @@ in } { block = "memory"; - display_type = "memory"; - format_mem = "{mem_used_percents}"; - format_swap = "{swap_used_percents}"; + format = "$icon $mem_used_percents "; } { block = "load"; interval = 1; - format = "{1m}"; + format = "$icon $1m"; } + { block = "net"; } + { block = "sound"; } + { block = "uptime"; } { block = "battery"; interval = 10; - format = "{percentage} {time}"; + format = "$icon $percentage $time"; + } + { + block = "taskwarrior"; + interval = 60; + format = " $icon $count.eng(w:1) tasks "; + format_singular = " $icon 1 task "; + format_everything_done = ""; + warning_threshold = 10; + critical_threshold = 20; + filters = [ + { + name = "active"; + filter = "+PENDING and ( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )"; + } + ]; } - { block = "uptime"; } { block = "time"; interval = 60; - format = "%Y-%m-%d %R"; + format = " $icon $timestamp.datetime(f:'%Y-%m-%d %R', l:de_DE) "; + } + { + block = "tea_timer"; + format = " $icon {$minutes:$seconds |}"; + done_cmd = "${pkgs.noti}/bin/noti 'Timer Finished'"; } ]; };