| 1 | # Processes Configuration |
| 2 | |
| 3 | ## Settings |
| 4 | |
| 5 | If you want to change some of the default behaviour of the processes widget, you can configure some things in the config file. |
| 6 | |
| 7 | | Field | Type | Functionality | |
| 8 | | ----------------------- | ------- | --------------------------------------------------------------------------------------------------------- | |
| 9 | | `get_threads` | Boolean | Gather process thread information. | |
| 10 | | `hide_k_threads` | Boolean | Hide kernel threads from being shown. Linux only. | |
| 11 | | `tree_collapse` | Boolean | Collapse the process tree by default when tree mode is set. | |
| 12 | | `process_command` | Boolean | Shows the full command name instead of the process name by default. | |
| 13 | | `disable_advanced_kill` | Boolean | Disable the advanced kill dialog and just show the basic one with no options. Linux, macOS, FreeBSD only. | |
| 14 | | `default_memory_value` | Boolean | Defaults to showing process memory usage by value. | |
| 15 | | `default_grouped` | Boolean | Groups processes with the same name by default. No effect if `--tree` is set. | |
| 16 | | `regex` | Boolean | Enables regex by default while searching. | |
| 17 | | `case_sensitive` | Boolean | Enables case sensitivity by default when searching. | |
| 18 | | `whole_word` | Boolean | Enables whole-word matching by default while searching. | |
| 19 | | `default_tree` | Boolean | Makes the process widget use tree mode by default. | |
| 20 | | `current_usage` | Boolean | Calculates process CPU usage as a percentage of current usage rather than total usage. | |
| 21 | | `unnormalized_cpu` | Boolean | Show process CPU% usage without averaging over the number of CPU cores. | |
| 22 | |
| 23 | ## Columns |
| 24 | |
| 25 | You can configure which columns are shown by the process widget by setting the `columns` setting: |
| 26 | |
| 27 | ```toml |
| 28 | [processes] |
| 29 | # Pick which columns you want to use in any order. |
| 30 | columns = ["cpu%", "mem%", "pid", "name", "read", "write", "tread", "twrite", "state", "user", "time", "gmem%", "gpu%"] |
| 31 | ``` |
| 32 | |
| 33 | ## Default Sort Column |
| 34 | |
| 35 | By default, the process widget starts sorted by CPU usage in descending order. You can change the column it sorts by at startup: |
| 36 | |
| 37 | ```toml |
| 38 | [processes] |
| 39 | default_sort = "mem" |
| 40 | ``` |
| 41 | |
| 42 | Any of the column names accepted by `columns` work here (e.g. `"cpu%"`, `"mem"`, `"pid"`, `"name"`, `"read"`). If the |
| 43 | column you pick is not actually shown by the widget, the built-in default is used instead. |
| 44 | |
| 45 | The same setting is also exposed as a CLI flag, which takes precedence over the config file: |
| 46 | |
| 47 | ``` |
| 48 | btm --process_default_sort mem |
| 49 | ``` |
| 50 | |
| 51 | You can also set the default order by changing `processes.sort_order` with `"Ascending"` or `"Descending"`. If not set, then by default, it will use a sort order that is reasonable (e.g. descending for CPU/memory usage, ascending for process names). |
| 52 | |
| 53 | ```toml |
| 54 | [processes] |
| 55 | sort_order = "Ascending" |
| 56 | ``` |