summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-layout
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-layout
parenteec12916e3b113825420c3e6731f87b770487245 (diff)
Add clickable elements to dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar/dwmb-layout')
-rwxr-xr-x.local/bin/dwmbar/dwmb-layout3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-layout b/.local/bin/dwmbar/dwmb-layout
index 3cd1132..47e2dec 100755
--- a/.local/bin/dwmbar/dwmb-layout
+++ b/.local/bin/dwmbar/dwmb-layout
@@ -1,3 +1,6 @@
#!/bin/sh
echo "  $(cat $HOME/.cache/layout) "
+case $BLOCK_BUTTON in
+ 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
+esac \ No newline at end of file