mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
add cpu count script
This commit is contained in:
parent
a11f92b4dd
commit
d957ec25e6
4 changed files with 6 additions and 1 deletions
3
bin/cpu-count
Executable file
3
bin/cpu-count
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
grep -c "^processor.*:" /proc/cpuinfo
|
1
debian/install
vendored
1
debian/install
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue