diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-29 10:48:43 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-29 10:48:43 +0900 |
| commit | 5fa16c7a7b6556a55ef691c9df3e5b433b18a803 (patch) | |
| tree | fda5d7dcd4fed87401e02b5728272a1cc26581ac /ar/.local/bin/statusbar | |
| parent | 64d760460383da782277ecfc52effaf776398d84 (diff) | |
Diffstat (limited to 'ar/.local/bin/statusbar')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ylog | 6 |
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 |
