summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-08-09 16:23:09 +1000
committerNathan Scott <nathans@redhat.com>2021-08-09 16:23:09 +1000
commiteb4ff3c69cf2b0c78d5158728fe0cc0245f2d080 (patch)
tree605352d1d68a9de801eee39e4a5fbc8ee5c36f40
parent1bd95983b2703cb313ea301367ff3199fabd1f9d (diff)
Add Shift-F7, Shift-F8 keybindings for autogroups
-rw-r--r--htop.1.in4
-rw-r--r--linux/Platform.c2
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[] = {

© 2014-2024 Faster IT GmbH | imprint | privacy policy