minor bugfixes
This commit is contained in:
parent
69dbab6ce8
commit
73476929bd
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue