Back to Bottom

Processes Configuration

docs/content/configuration/config-file/processes.md

0.14.53.1 KB
Original Source

Processes Configuration

Settings

If you want to change some of the default behaviour of the processes widget, you can configure some things in the config file.

FieldTypeFunctionality
get_threadsBooleanGather process thread information.
hide_k_threadsBooleanHide kernel threads from being shown. Linux only.
tree_collapseBooleanCollapse the process tree by default when tree mode is set.
process_commandBooleanShows the full command name instead of the process name by default.
disable_advanced_killBooleanDisable the advanced kill dialog and just show the basic one with no options. Linux, macOS, FreeBSD only.
default_memory_valueBooleanDefaults to showing process memory usage by value.
default_groupedBooleanGroups processes with the same name by default. No effect if --tree is set.
regexBooleanEnables regex by default while searching.
case_sensitiveBooleanEnables case sensitivity by default when searching.
whole_wordBooleanEnables whole-word matching by default while searching.
default_treeBooleanMakes the process widget use tree mode by default.
current_usageBooleanCalculates process CPU usage as a percentage of current usage rather than total usage.
unnormalized_cpuBooleanShow process CPU% usage without averaging over the number of CPU cores.

Columns

You can configure which columns are shown by the process widget by setting the columns setting:

toml
[processes]
# Pick which columns you want to use in any order.
columns = ["cpu%", "mem%", "pid", "name", "read", "write", "tread", "twrite", "state", "user", "time", "gmem%", "gpu%"]

Default Sort Order

By default, the process widget starts sorted by CPU usage. You can change the column it sorts by at startup:

toml
[processes]
default_sort = "mem"

Any of the column names accepted by columns work here (e.g. "cpu%", "mem", "pid", "name", "read"). If the column you pick is not actually shown by the widget, the built-in default is used instead.

The same setting is also exposed as a CLI flag, which takes precedence over the config file:

btm --process_default_sort mem