summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-date
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 02:01:11 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 02:01:11 -0400
commitd427693f43ba211e35f18adc877f5df48e4724db (patch)
tree51d25a2b70c14644c1c07a366d5b75740d4017e7 /.local/bin/dwmbar/dwmb-date
parenteec12916e3b113825420c3e6731f87b770487245 (diff)
Add clickable elements to dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar/dwmb-date')
-rwxr-xr-x.local/bin/dwmbar/dwmb-date4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-date b/.local/bin/dwmbar/dwmb-date
index 9f2d485..cb6a54b 100755
--- a/.local/bin/dwmbar/dwmb-date
+++ b/.local/bin/dwmbar/dwmb-date
@@ -1,3 +1,7 @@
#!/bin/sh
date +"  %a %b %d "
+
+case $BLOCK_BUTTON in
+ 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
+esac