add cpu count script

This commit is contained in:
Dustin Kirkland 2008-12-15 23:50:38 -06:00
commit d957ec25e6
4 changed files with 6 additions and 1 deletions

3
bin/cpu-count Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
grep -c "^processor.*:" /proc/cpuinfo

1
debian/install vendored
View file

@ -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

View file

@ -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

View file

@ -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}'