From 65700539ea4bb6866fdd08b69eca29a19d19a3fc Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 15 Jan 2024 03:50:39 +0900 Subject: feat(home/base): configure htop --- home/profiles/base/default.nix | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'home/profiles') diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 0be9a53..f654bd4 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -69,7 +69,45 @@ in gpg.enable = true; gpg.settings.keyserver = "keys.openpgp.org"; home-manager.enable = true; - htop.enable = true; + + htop = { + enable = true; + + settings = { + color_scheme = 6; + # 0 = false, 1 = true + cpu_count_from_one = 0; + fields = with config.lib.htop.fields; [ + PID + USER + PRIORITY + NICE + M_SIZE + M_RESIDENT + M_SHARE + STATE + PERCENT_CPU + PERCENT_MEM + TIME + COMM + ]; + highlight_base_name = 1; + highlight_megabytes = 1; + highlight_threads = 1; + } // (with config.lib.htop; leftMeters [ + (bar "LeftCPUs4") + (bar "Memory") + (bar "Swap") + (text "NetworkIO") + (text "DiskIO") + ]) // (with config.lib.htop; rightMeters [ + (bar "RightCPUs4") + (text "Tasks") + (text "LoadAverage") + (text "Uptime") + (text "Systemd") + ]); + }; tmux = { enable = true; -- cgit 1.4.1