From 4814403bbf58794da3349f21e55746e50e68eab4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 Apr 2020 22:01:51 -0400 Subject: pgrep junk removed and minor script changes --- .local/bin/statusbar/news | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.local/bin/statusbar/news') diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index 28b2940..455f64d 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -1,13 +1,12 @@ #!/bin/sh -# i3blocks newsboat module. # Displays number of unread news items and an loading icon if updating. # When clicked, brings up `newsboat`. case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -e newsboat ;; 2) setsid newsup >/dev/null & exit ;; - 3) pgrep -x dunst >/dev/null && notify-send "📰 News module" "\- Shows unread news items + 3) notify-send "📰 News module" "\- Shows unread news items - Shows 🔃 if updating with \`newsup\` - Left click opens newsboat - Middle click syncs RSS feeds -- cgit v1.3.1