1
0
Fork 0

minor bugfixes

This commit is contained in:
Luca Bilke 2024-02-04 13:04:06 +01:00
parent 69dbab6ce8
commit 73476929bd
2 changed files with 2 additions and 2 deletions

View file

@ -15,5 +15,5 @@ for f in $ZDOTDIR/configs/autogenerated/*; do
done
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1 --no-autostart
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
clear

View file

@ -7,7 +7,7 @@ cache=/tmp/cpubarscache
temp=$(sensors | awk '/CPU/ {printf ("%.f°C", $2)}' | tr -d "+")
[ -n "$temp" ] && temp="$temp "
stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat 2>/dev/null)
[ ! -f $cache ] && echo "$stats" >"$cache"
[ ! -f $cache ] && echo "$stats" >"$cache" && exit
old=$(cat "$cache")
printf "%b" " $temp"