From 873ae3e69abd451545ec860598dcd0ec21881ca1 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 2 Jan 2020 16:19:19 +0100 Subject: [PATCH] htoprc: automatically switch to 4-column CPU layout --- shell/setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/setup.sh b/shell/setup.sh index e8cff62..9f622f7 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -233,6 +233,9 @@ fi # Htop overwrites the comments in its configuration file. generate htoprc .in cat +if installed nproc && test "$(nproc)" -gt 8; then + sed_i 's/LeftCPUs/LeftCPUs2/; s/RightCPUs/RightCPUs2/' htoprc +fi if installed dig; then # dig doesn't support any comments in digrc. -- 2.45.2