From 73476929bd4c1cb8e66fd880a672da22f6b33891 Mon Sep 17 00:00:00 2001 From: Luca Bilke <luca@bil.ke> Date: Sun, 4 Feb 2024 13:04:06 +0100 Subject: [PATCH] minor bugfixes --- .config/zsh/.zshrc | 2 +- .local/libexec/statusbar/sb-cpu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"