summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-news
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dwmbar/dwmb-news')
-rwxr-xr-x.local/bin/dwmbar/dwmb-news4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-news b/.local/bin/dwmbar/dwmb-news
index 4a33702..4318040 100755
--- a/.local/bin/dwmbar/dwmb-news
+++ b/.local/bin/dwmbar/dwmb-news
@@ -2,3 +2,7 @@
nb=$(cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " " $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null) ")
echo " $nb"
+case $BLOCK_BUTTON in
+ 1) "$TERMINAL" -e newsboat ;;
+ 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
+esac