From 16ab592518d58f8c1a11d74630b7fc4cfd1284c8 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 22 Nov 2021 16:24:23 -0500 Subject: Adjust status-bar for my desktop --- bin/status-bar | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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" "$@")" -- cgit v1.2.3