blob: 19ba8d75fa01bac0dd3d9fa134242bd0e4364485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
count="$(curl https://www.ladebarque.com/achalandage |
grep 'il y a ' |
sed 's/.*il\sy\sa\sen\sce\smoment\s//; s/\sgrimpeurs.*//')"
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
|