From 7c0da89e3811db628d37e8198b0d4a05a9c45d9c Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 3 Nov 2023 14:42:18 +0100 Subject: [PATCH] updated i3 status bar --- flake.lock | 60 ++++++++++++------------ flake.nix | 1 + nixos/components/gui/home-manager/i3.nix | 17 ++++++- nixos/components/terminal/heygpt.nix | 3 +- 4 files changed, 49 insertions(+), 32 deletions(-) diff --git a/flake.lock b/flake.lock index 6cbf252..c14df5b 100644 --- a/flake.lock +++ b/flake.lock @@ -47,11 +47,11 @@ ] }, "locked": { - "lastModified": 1697721991, - "narHash": "sha256-Sjm7WaD+zLi9R7x8QKa9HGkizFQXvWGo18WlQtNPPtw=", + "lastModified": 1698422527, + "narHash": "sha256-SDu3Xg263t3oXIyTaH0buOvFnKIDeZsvKDBtOz+jRbs=", "owner": "nix-community", "repo": "disko", - "rev": "c24c3a902935321e1dfa1ca587e66f47edf79faf", + "rev": "944d338d24a9d043a3f7461c30ee6cfe4f9cca30", "type": "github" }, "original": { @@ -178,11 +178,11 @@ "emacs-overlay_2": { "flake": false, "locked": { - "lastModified": 1697966749, - "narHash": "sha256-+FaNp+NjDXypHwKJgzi6UX5NZJNMGF7YC+rLXiawG84=", + "lastModified": 1698981203, + "narHash": "sha256-CN6S81JON0tOY3RXK1AK+MkF8F7k3Zfp+cuaAbLERJI=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "0e0d24a13321cd93af7f2a10a61fe71f6d81448b", + "rev": "8f964138749616526f0d2792e05e06aa5d509741", "type": "github" }, "original": { @@ -543,11 +543,11 @@ }, "locked": { "dir": "nix", - "lastModified": 1697534720, - "narHash": "sha256-hh5a82fbujCOitFjbzClCMZ/XZQeFsdOHxZWCXXv1i4=", + "lastModified": 1698213131, + "narHash": "sha256-RPfi08g5DHvq5oEX57sJ1al2smBk0d9d8gAzL7jRnNQ=", "owner": "kmonad", "repo": "kmonad", - "rev": "a1aea16c7a3239c0a3d7522b09edb1d6988bae02", + "rev": "1b2ec006259ddbe6cda30db8eb783e8177a9f12b", "type": "github" }, "original": { @@ -612,11 +612,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1697748412, - "narHash": "sha256-5VSB63UE/O191cuZiGHbCJ9ipc7cGKB8cHp0cfusuyo=", + "lastModified": 1698853384, + "narHash": "sha256-/FQ2WeCjdjdNo9eGTO7JruGAjO2Ccime8y1OU4/Aesk=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "72d53d51704295f1645d20384cd13aecc182f624", + "rev": "11d50c5d52472ed40d3cb109daad03c836d2b328", "type": "github" }, "original": { @@ -712,11 +712,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1697929210, - "narHash": "sha256-RkQZif6QhswEwv7484mrKfIU8XmIWm+ED6llbr4IyxM=", + "lastModified": 1698544399, + "narHash": "sha256-vhRmPyEyoPkrXF2iykBsWHA05MIaOSmMRLMF7Hul6+s=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "fb000224952bf7749a9e8b3779104ef7ea4465c8", + "rev": "d87c5d8c41c9b3b39592563242f3a448b5cc4bc9", "type": "github" }, "original": { @@ -728,11 +728,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1697723726, - "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", + "lastModified": 1698924604, + "narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", + "rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40", "type": "github" }, "original": { @@ -775,11 +775,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1697777081, - "narHash": "sha256-n2vQARhKevRGyeo+LAa8g+CdUQsdH/caNk8jnylcPhY=", + "lastModified": 1698846319, + "narHash": "sha256-4jyW/dqFBVpWFnhl0nvP6EN4lP7/ZqPxYRjl6var0Oc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "679cadfdfed2b90311a247b2d6ef6dfd3d6cab73", + "rev": "34bdaaf1f0b7fb6d9091472edc968ff10a8c2857", "type": "github" }, "original": { @@ -805,11 +805,11 @@ }, "nixpkgs_6": { "locked": { - "lastModified": 1697886341, - "narHash": "sha256-AdE67xPty9M9wn36nPVp6aDntIdigrs7UbyaGv1VAaM=", + "lastModified": 1698336494, + "narHash": "sha256-sO72WDBKyijYD1GcKPlGsycKbMBiTJMBCnmOxLAs880=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "44881e03af1c730cbb1d72a4d41274a2c957813a", + "rev": "808c0d8c53c7ae50f82aca8e7df263225cf235bf", "type": "github" }, "original": { @@ -988,11 +988,11 @@ }, "retiolum": { "locked": { - "lastModified": 1697359200, - "narHash": "sha256-oPSBM9PQzFmuvGxzVyxXIO+EtSmExvbty2GxR4aTsTE=", + "lastModified": 1698762718, + "narHash": "sha256-kQLHIH45sSs02hiRDR2xCHknqHz2FEIzTivP3Y9FETk=", "owner": "Mic92", "repo": "retiolum", - "rev": "93480e81f8067792937a2512f212447e77b7babc", + "rev": "57f33219ab35e41b3c2108280469bbb1575f8da6", "type": "github" }, "original": { @@ -1117,11 +1117,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1697943852, - "narHash": "sha256-DaBxUPaZhQ3yLCmAATshYB7qo7NwcMvSFWz9T3bjYYY=", + "lastModified": 1698929376, + "narHash": "sha256-TmROaV9W6HArdTUgxLN334Kw+CradxWHw1HYM/3H6xI=", "owner": "Mic92", "repo": "sops-nix", - "rev": "30a0ba4a20703b4bfe047fe5def1fc24978e322c", + "rev": "84d6b27dc71ac02422e192c35806d06915d2bf67", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 4e63a96..4b7f07f 100644 --- a/flake.nix +++ b/flake.nix @@ -119,6 +119,7 @@ config.allowUnfree = true; config.permittedInsecurePackages = [ "python-2.7.18.6" + "electron-24.8.6" # for bitwarden ]; overlays = [ diff --git a/nixos/components/gui/home-manager/i3.nix b/nixos/components/gui/home-manager/i3.nix index a4f0d45..27655e5 100644 --- a/nixos/components/gui/home-manager/i3.nix +++ b/nixos/components/gui/home-manager/i3.nix @@ -57,7 +57,7 @@ in { block = "taskwarrior"; interval = 60; - format = " $icon $count.eng(w:3) tasks "; + format = " $icon $count.eng(w:3) todo "; format_singular = " $icon 1 task "; format_everything_done = ""; warning_threshold = 10; @@ -69,6 +69,21 @@ in } ]; } + { + block = "taskwarrior"; + interval = 60; + format = " $icon $count.eng(w:2) "; + format_singular = " $icon 1 task "; + format_everything_done = ""; + warning_threshold = 3; + critical_threshold = 5; + filters = [ + { + name = "started"; + filter = "+PENDING and +ACTIVE"; + } + ]; + } { block = "time"; interval = 60; diff --git a/nixos/components/terminal/heygpt.nix b/nixos/components/terminal/heygpt.nix index 32bf609..c5cefe8 100644 --- a/nixos/components/terminal/heygpt.nix +++ b/nixos/components/terminal/heygpt.nix @@ -3,7 +3,8 @@ with lib; { options.components.terminal.heygpt.enable = mkOption { type = lib.types.bool; - default = config.components.terminal.enable; + #default = config.components.terminal.enable; + default = false; }; config = mkIf (config.components.terminal.heygpt.enable) {