diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-17 02:01:11 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-17 02:01:11 -0400 |
commit | d427693f43ba211e35f18adc877f5df48e4724db (patch) | |
tree | 51d25a2b70c14644c1c07a366d5b75740d4017e7 /.local/bin/dwmbar/dwmb-news | |
parent | eec12916e3b113825420c3e6731f87b770487245 (diff) |
Add clickable elements to dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar/dwmb-news')
-rwxr-xr-x | .local/bin/dwmbar/dwmb-news | 4 |
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 |