#!/bin/sh count="$(curl https://www.ladebarque.com/achalandage | grep -i 'il y a ' | sed 's/.*il\sy\sa\sen\sce\smoment\s//; s/\([0-9]*\).*/\1/')" 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