Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
@silvernode
executable file 46 lines (33 sloc) 0.59 kb
#!/bin/bash
CHILLTIME=1 # Minutes between bong hits
BONGTIME=1 # Minutes during bong hits
chillCount(){
clear
secs=$(( ${CHILLTIME} * 60))
echo "(-_-)"
echo "Seconds until next bong hit"
while [ $secs -gt 0 ]; do
echo -ne "$secs\033[0K\r"
sleep 1
: $((secs--))
done
}
bongCount(){
clear
secs=$(( ${BONGTIME} * 60))
echo "(-_-)"
echo "Seconds until next chill period"
while [ $secs -gt 0 ]; do
echo -ne "$secs\033[0K\r"
sleep 1
: $((secs--))
done
}
main(){
clear
while true;do
chillCount
bongCount
done
}
main
Jump to Line
Something went wrong with that request. Please try again.