commit ffeffc87a8232efd872d41f0b01a830d131a4c07 parent 03c6938d4e966cdb90317a6b1725d32745ad35ef Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 24 Aug 2021 12:00:29 +0200 users/vincent: update htop configuration Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | users/vincent/core/htop.nix | | | 22 | +++++++++++++++++----- |
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/users/vincent/core/htop.nix b/users/vincent/core/htop.nix @@ -1,10 +1,22 @@ +{ config, ... }: + { programs.htop = { enable = true; - delay = 10; - meters = { - left = [ "AllCPUs2" "Memory" "Swap" ]; - right = [ "Clock" "Hostname" "Tasks" "LoadAverage" "Uptime" "Battery" ]; - }; + settings = { + delay = 10; + } // (with config.lib.htop; leftMeters [ + (bar "AllCPUs2") + (bar "Memory") + (bar "Swap") + ]) // (with config.lib.htop; rightMeters [ + (text "Clock") + (text "Hostname") + (text "Tasks") + (text "LoadAverage") + (text "Uptime") + (text "Battery") + (text "Systemd") + ]); }; }