Add Shift-F7, Shift-F8 keybindings for autogroups

This commit is contained in:
Daniel Lange 2021-08-09 16:23:09 +10:00 committed by Nathan Scott
parent 1bd95983b2
commit eb4ff3c69c
2 changed files with 4 additions and 2 deletions

View File

@ -176,11 +176,11 @@ This can only be done by the superuser.
.B F8, [ .B F8, [
Decrease the selected process's priority (add to 'nice' value) Decrease the selected process's priority (add to 'nice' value)
.TP .TP
.B } .B Shift-F7, }
Increase the selected process's autogroup priority (subtract from autogroup 'nice' value). Increase the selected process's autogroup priority (subtract from autogroup 'nice' value).
This can only be done by the superuser. This can only be done by the superuser.
.TP .TP
.B { .B Shift-F8, {
Decrease the selected process's autogroup priority (add to autogroup 'nice' value) Decrease the selected process's autogroup priority (add to autogroup 'nice' value)
.TP .TP
.B F9, k .B F9, k

View File

@ -182,6 +182,8 @@ void Platform_setBindings(Htop_Action* keys) {
keys['i'] = Platform_actionSetIOPriority; keys['i'] = Platform_actionSetIOPriority;
keys['{'] = Platform_actionLowerAutogroupPriority; keys['{'] = Platform_actionLowerAutogroupPriority;
keys['}'] = Platform_actionHigherAutogroupPriority; keys['}'] = Platform_actionHigherAutogroupPriority;
keys[KEY_F(19)] = Platform_actionLowerAutogroupPriority; // Shift-F7
keys[KEY_F(20)] = Platform_actionHigherAutogroupPriority; // Shift-F8
} }
const MeterClass* const Platform_meterTypes[] = { const MeterClass* const Platform_meterTypes[] = {