Add keybind for toggling memory display mode in PROC box

This commit is contained in:
Rahul Aggarwal 2023-09-20 22:55:56 -04:00 committed by Jakob P. Liljenberg
parent 260c0f6623
commit b5ba2fc963
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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."},