Created
June 6, 2018 13:01
-
-
Save deltam/72f9634b6ce53023ce6a0a820c322150 to your computer and use it in GitHub Desktop.
ポモドーロ用のシェルスクリプト
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
#!/bin/sh | |
# for mac | |
function message() { | |
m=$1" "`date "+%H:%M"` | |
osascript -e "display notification \"$m\" with title \"pomodoro notice\"" | |
echo $m | |
say $m | |
} | |
message "ポモドーロ開始" | |
sleep 1500 | |
message "作業終了, 休憩開始" | |
sleep 300 | |
message "休憩終了" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment