diff options
author | Jakob P. Liljenberg <admin@qvantnet.com> | 2023-09-30 19:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 19:51:03 +0200 |
commit | 636eb25f5e31a7af337b024873b2ceb42650ebdb (patch) | |
tree | 0975d13caa6937c90ed73d4a9fac5b4d6d8d5178 | |
parent | 260c0f662313fe0d0df859645f5731af04fc9fa7 (diff) | |
parent | b5ba2fc9635e540142d3dd3eccd866865c9393fd (diff) |
Merge pull request #623 from rahulaggarwal965/main
Add keybind for toggling memory display mode in PROC box
-rw-r--r-- | src/btop_input.cpp | 3 | ||||
-rw-r--r-- | src/btop_menu.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/btop_input.cpp b/src/btop_input.cpp index ebdee3b..21aff58 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -343,6 +343,9 @@ namespace Input { else if (key == "c") Config::flip("proc_per_core"); + else if (key == "%") + Config::flip("proc_mem_bytes"); + else if (key == "delete" and not Config::getS("proc_filter").empty()) Config::set("proc_filter", ""s); diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index 3066da3..e17463f 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -195,6 +195,7 @@ namespace Menu { {"c", "Toggle per-core cpu usage of processes."}, {"r", "Reverse sorting order in processes box."}, {"e", "Toggle processes tree view."}, + {"%", "Toggles memory display mode in processes box."}, {"Selected +, -", "Expand/collapse the selected process in tree view."}, {"Selected t", "Terminate selected process with SIGTERM - 15."}, {"Selected k", "Kill selected process with SIGKILL - 9."}, |