From eb4ff3c69cf2b0c78d5158728fe0cc0245f2d080 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 9 Aug 2021 16:23:09 +1000 Subject: Add Shift-F7, Shift-F8 keybindings for autogroups --- htop.1.in | 4 ++-- linux/Platform.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htop.1.in b/htop.1.in index 5d00c7cb..9bc381bd 100644 --- a/htop.1.in +++ b/htop.1.in @@ -176,11 +176,11 @@ This can only be done by the superuser. .B F8, [ Decrease the selected process's priority (add to 'nice' value) .TP -.B } +.B Shift-F7, } Increase the selected process's autogroup priority (subtract from autogroup 'nice' value). This can only be done by the superuser. .TP -.B { +.B Shift-F8, { Decrease the selected process's autogroup priority (add to autogroup 'nice' value) .TP .B F9, k diff --git a/linux/Platform.c b/linux/Platform.c index 64be93c7..f45f4f53 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -182,6 +182,8 @@ void Platform_setBindings(Htop_Action* keys) { keys['i'] = Platform_actionSetIOPriority; keys['{'] = Platform_actionLowerAutogroupPriority; keys['}'] = Platform_actionHigherAutogroupPriority; + keys[KEY_F(19)] = Platform_actionLowerAutogroupPriority; // Shift-F7 + keys[KEY_F(20)] = Platform_actionHigherAutogroupPriority; // Shift-F8 } const MeterClass* const Platform_meterTypes[] = { -- cgit v1.2.3