diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-11-22 16:24:23 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-11-22 16:24:23 -0500 |
| commit | 16ab592518d58f8c1a11d74630b7fc4cfd1284c8 (patch) | |
| tree | a8e63548eb74e54ccb1d2642085d863ca51c40ed /bin/status-bar | |
| parent | 59acf85c7371b5a955e420a02f469d43116d2a0c (diff) | |
| download | dotfiles-16ab592518d58f8c1a11d74630b7fc4cfd1284c8.tar.gz dotfiles-16ab592518d58f8c1a11d74630b7fc4cfd1284c8.tar.xz | |
Adjust status-bar for my desktop
Diffstat (limited to 'bin/status-bar')
| -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" "$@")" |
