LoginSignup
0
0

More than 3 years have passed since last update.

シェルコマンド N分でアラームを鳴らすコマンド

Last updated at Posted at 2020-11-27

ざっくりメモです。

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に返す
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0