From 5fa16c7a7b6556a55ef691c9df3e5b433b18a803 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 29 Mar 2026 10:48:43 +0900 Subject: modified statusbar/sb-ylog --- ar/.local/bin/statusbar/sb-ylog | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ar/.local/bin/statusbar') 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 -- cgit v1.2.3