summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xar/.local/bin/statusbar/sb-ylog6
1 files changed, 5 insertions, 1 deletions
diff --git a/ar/.local/bin/statusbar/sb-ylog b/ar/.local/bin/statusbar/sb-ylog
index 933b5e0..7f53c8e 100755
--- a/ar/.local/bin/statusbar/sb-ylog
+++ b/ar/.local/bin/statusbar/sb-ylog
@@ -6,7 +6,7 @@
# Middle click: force refresh
# Right click: help
-CACHE_DIR="/tmp/ylog_sb"
+CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/ylog_sb"
PREV="$CACHE_DIR/prev"
CURR="$CACHE_DIR/curr"
NEW="$CACHE_DIR/new"
@@ -14,6 +14,8 @@ LOCK="$CACHE_DIR/lock"
mkdir -p "$CACHE_DIR"
+export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"
+
fetch_logs() {
us_today=$(TZ=America/New_York LC_TIME=C date +%d/%b)
us_yesterday=$(TZ=America/New_York LC_TIME=C date -d 'yesterday' +%d/%b)
@@ -83,3 +85,5 @@ if [ -s "$NEW" ]; then
count=$(wc -l <"$NEW")
printf "🌐%s\n" "$count"
fi
+
+exit 0