Skip to content

Commit

Permalink
Merge pull request aristocratos#623 from rahulaggarwal965/main
Browse files Browse the repository at this point in the history
Add keybind for toggling memory display mode in PROC box
  • Loading branch information
aristocratos committed Sep 30, 2023
2 parents 260c0f6 + b5ba2fc commit 636eb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/btop_input.cpp
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions src/btop_menu.cpp
Expand Up @@ -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."},
Expand Down

0 comments on commit 636eb25

Please sign in to comment.