diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 061ddedc..c9f7a5c2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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 diff --git a/.local/libexec/statusbar/sb-cpu b/.local/libexec/statusbar/sb-cpu index 5b382840..39a4dc05 100755 --- a/.local/libexec/statusbar/sb-cpu +++ b/.local/libexec/statusbar/sb-cpu @@ -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"