From 30ce5145950098a2bbd40568580307189aa3d362 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Fri, 20 Nov 2020 13:57:24 -0500 Subject: Embracing vim-fugitive and todoist.nvim --- .local/bin/dwmbar/dwmb-debarque | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .local/bin/dwmbar/dwmb-debarque (limited to '.local/bin/dwmbar') 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 -- cgit v1.2.3