summaryrefslogtreecommitdiff
path: root/ar/.local/bin
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-21 08:29:13 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-21 08:29:13 +0900
commit8b3cc3c2cd0f0d65ad950e302d8b931d02b01c7c (patch)
tree6229f6c58d83b515a5027f472d753260bc313bad /ar/.local/bin
parentc7038661b376f9fe4e331fcf9d77766ca5e8d465 (diff)
modified statusbar/sb-ylog
Diffstat (limited to 'ar/.local/bin')
-rwxr-xr-xar/.local/bin/statusbar/sb-ylog8
1 files changed, 4 insertions, 4 deletions
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