3 # This must appear before "column_meters_*" options
4 xdg.configFile."htop/htoprc".text = lib.mkBefore ''
5 header_layout=two_50_50
7 # Htop overrides its config on each quit,
8 # forcing the overwrite avoid subsequent invocations of home-manager to fail.
9 xdg.configFile."htop/htoprc".force = true;
11 enable = lib.mkDefault true;
13 account_guest_in_cpu_meter = false;
14 all_branches_collapsed = false;
16 column_meter_modes_0 = "3 1 1 1";
17 column_meter_modes_1 = "2 2 2 3 1 3 1 1 1 1";
18 column_meters_0 = "AllCPUs Memory Swap Zram";
19 column_meters_1 = "Hostname Systemd SystemdUser LoadAverage Uptime DiskIO DiskIO NetworkIO NetworkIO ZFSARC ZFSCARC PressureStallIOFull";
20 cpu_count_from_one = false;
21 degree_fahrenheit = false;
23 detailed_cpu_time = true;
25 find_comm_in_cmdline = true;
27 hide_function_bar = false;
28 hide_kernel_threads = false;
30 hide_userland_threads = true;
31 highlight_base_name = true;
32 highlight_changes = true;
33 highlight_changes_delay_secs = 5;
34 highlight_deleted_exe = true;
35 highlight_megabytes = true;
36 highlight_threads = true;
38 shadow_other_users = false;
39 show_cpu_frequency = true;
40 show_cpu_temperature = false;
41 show_cpu_usage = true;
42 show_merged_command = false;
43 show_program_path = false;
44 show_thread_names = false;
46 sort_key = 46; # PERCENT_CPU
47 strip_exe_from_cmdline = true;
48 tree_sort_direction = 0;
49 tree_sort_key = 46; # PERCENT_CPU
51 tree_view_always_by_pid = false;
52 update_process_names = false;
55 PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
57 .tree_sort_key=PERCENT_CPU
59 .tree_view_always_by_pid=0
61 .tree_sort_direction=0
62 .all_branches_collapsed=0
65 PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE
69 .tree_view_always_by_pid=0
71 .tree_sort_direction=1
72 .all_branches_collapsed=0