summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-debarque
blob: a5c0e2157f466272e30b167013b057809cb4f456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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