Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [[ "$1" == "--minutes="* ]]; then
- MINUTES="${1#--minutes=}"; shift
- elif [[ "$1" == "-m"* ]]; then
- MINUTES="${1#-m}"; shift
- if [ "$MINUTES" == "" ]; then
- MINUTES="${1}"; shift
- fi
- fi
- MINUTES=${MINUTES:-25}
- trap "timew cancel && exit" INT TERM
- timew start pomodoro $@ 2>&1 1>/dev/null
- sleep $(( $MINUTES * 60 ))
- echo "Pomodoro Finished!"
- paplay bell.wav &
- read -p "Press [Enter] to finish task..."
- timew stop 2>&1 1>/dev/null
- echo "Task finished"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement