diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/status-bar | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/status-bar b/bin/status-bar index f73879a..8dd249d 100755 --- a/bin/status-bar +++ b/bin/status-bar @@ -108,6 +108,10 @@ sensors | sed -n '/^k10/,/^$/p' | awk '/^Tctl/{print $2}' \ | sed -e's/+//g' -e's/\.[0-9][^0-9]*$//g' } +core_0_temp() { +sensors | grep 'Core 0' | awk '{print $3}' | grep -oE '[0-9.]*' +} + pine_Temp() { sensors | sed -n -e 's/^temp1[ \t:]*//p' | sed 1q } @@ -157,6 +161,14 @@ echo \ "$(date '+%m.%d.%Y %H:%M')" } +desktop_status_line() { +echo \ +"Temp: $(core_0_temp)|"\ +"CPU: $(cpu_freq)|"\ +"$(network_info)|"\ +"$(date '+%m.%d.%Y %H:%M')" +} + _type="$1"; shift while true ; do xsetroot -name "$("${_type}_status_line" "$@")" |
