From d427693f43ba211e35f18adc877f5df48e4724db Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 17 Oct 2020 02:01:11 -0400 Subject: Add clickable elements to dwmblocks scripts --- .local/bin/dwmbar/dwmb-news | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.local/bin/dwmbar/dwmb-news') 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 -- cgit v1.2.3