ざっくりメモです。
function tmr () {{sleep $((60 * $@)); osascript -e 'display notification "時間です"' -e 'beep 10';}&}
tmr <n分数>
解説
osascriptコマンドでAppleScriptを実行
osascript -e 'display notification "時間です"' -e 'beep 10'
# 通知
display notification "時間です"
# ビープ音10回
beep 10
今後できたらいいこと
- 残り時間の表示
- プロセスに名前をつける
- コマンド入力時に設定内容をterminalに返す