diff --git a/bin/cpu-count b/bin/cpu-count new file mode 100755 index 00000000..8771ce29 --- /dev/null +++ b/bin/cpu-count @@ -0,0 +1,3 @@ +#!/bin/sh + +grep -c "^processor.*:" /proc/cpuinfo diff --git a/debian/install b/debian/install index c6cc6e00..a3fb179d 100644 --- a/debian/install +++ b/debian/install @@ -1,3 +1,4 @@ +bin/cpu-count usr/share/screen-profiles/bin bin/cpu-freq usr/share/screen-profiles/bin bin/reboot-required usr/share/screen-profiles/bin bin/release usr/share/screen-profiles/bin diff --git a/profiles/common b/profiles/common index 0e1ee638..a0200016 100644 --- a/profiles/common +++ b/profiles/common @@ -26,6 +26,7 @@ backtick 100 3600 3600 /usr/share/screen-profiles/bin/release backtick 101 3600 3600 /usr/share/screen-profiles/bin/updates-available backtick 102 10 10 /usr/share/screen-profiles/bin/reboot-required backtick 103 5 5 /usr/share/screen-profiles/bin/cpu-freq +backtick 104 999999 999999 /usr/share/screen-profiles/bin/cpu-count hardstatus alwayslastline diff --git a/profiles/ubuntu.screenrc b/profiles/ubuntu.screenrc index a7a9ee2d..39ab36a4 100644 --- a/profiles/ubuntu.screenrc +++ b/profiles/ubuntu.screenrc @@ -22,4 +22,4 @@ source /usr/share/screen-profiles/profiles/common caption always '%{= Wk}%{= Wk}%?%-Lw%?%{= yk}%n %t%{= Wk} %?%+Lw%?%?%= %{= Wk}' -hardstatus string '%{= wk} %{+b r}\%{= y}o%{=b Y}/%{+b wk} %100` %{= Wk}|%= |%{+B bW}%102`%{= Wk}|%{+b rW}%101`%{= Wk}|%{+b gW}%103`%{= Wk}|%{= wb}%Y-%m-%d %c:%s%{k}' +hardstatus string '%{= wk} %{+b r}\%{= y}o%{=b Y}/%{+b wk} %100` %{= Wk}|%= |%{+B bW}%102`%{= Wk}|%{+b rW}%101`%{= Wk}|%{g}%104`x%{+b gW}%103`%{= Wk}|%{= wb}%Y-%m-%d %c:%s%{k}'