countdown script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function countdown { | |
MIN=$1 && for i in $(seq $(($MIN*60)) -1 1); do | |
printf "\r%02d:%02d:%02d" $((i/3600)) $(( (i/60)%60)) $((i%60)); sleep 1; | |
done | |
osascript -e 'display notification "시간이 지났습니다" with title "Countdown" sound name "Clock-chimes"'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment