From 8b3cc3c2cd0f0d65ad950e302d8b931d02b01c7c Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 21 May 2026 08:29:13 +0900 Subject: modified statusbar/sb-ylog --- ar/.local/bin/statusbar/sb-ylog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ar') diff --git a/ar/.local/bin/statusbar/sb-ylog b/ar/.local/bin/statusbar/sb-ylog index 4326765..fed7ace 100755 --- a/ar/.local/bin/statusbar/sb-ylog +++ b/ar/.local/bin/statusbar/sb-ylog @@ -54,16 +54,16 @@ mark_seen() { case $BLOCK_BUTTON in 1) - if [ -s "$CURR" ]; then - count=$(wc -l <"$CURR") - notify-send "🌐 Current log entries ($count)" "$(sed 's/^[^ ]* //' "$CURR" | cut -c1-120 | tail -20)" + if [ -s "$NEW" ]; then + count=$(wc -l <"$NEW") + notify-send "🌐 Current log entries ($count)" "$(cut -c1-120 "$NEW" | tail -20)" else notify-send "🌐 Ylog" "No entries in cache." fi ;; 2) if [ -s "$NEW" ]; then - notify-send "🌐 New log entries" "$(cat "$NEW" | sed 's/^[^ ]* //' | cut -c1-120 | tail -20)" + notify-send "🌐 New log entries" "$(cut -c1-120 "$NEW" | tail -20)" mark_seen pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}" else -- cgit v1.2.3