summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-11-20 13:57:24 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2020-11-20 13:57:24 -0500
commit30ce5145950098a2bbd40568580307189aa3d362 (patch)
tree13ffe73097d1854f55f6e4d07dd4b029f53299b4 /.local/bin/dwmbar
parent13429d1b0227160157ec2e66f411321c94af2cbd (diff)
Embracing vim-fugitive and todoist.nvim
Diffstat (limited to '.local/bin/dwmbar')
-rwxr-xr-x.local/bin/dwmbar/dwmb-debarque13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-debarque b/.local/bin/dwmbar/dwmb-debarque
new file mode 100755
index 0000000..c9f70fe
--- /dev/null
+++ b/.local/bin/dwmbar/dwmb-debarque
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+count="$(curl https://www.ladebarque.com/achalandage |
+ grep "il y a " |
+ sed 's/.*il\ y\ a\ en\ ce\ moment.nbsp;\s//; s/.nbsp.*//')"
+
+echo "  $count "
+
+case $BLOCK_BUTTON in
+ 1) $BROWSER https://www.ladebarque.com/achalandage ;;
+ 2) notify-send -a " La Débarque" "Syncing..." && kill -51 $(pidof dwmblocks) && notify-send -a " La Débarque" "Done!" ;;
+ 3) notify-send -a "La Débarque" "This block shows the number of people currently climbing at my local gym." ;;
+esac