0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Mac ターミナルでタイマー(シェル芸

Last updated at Posted at 2020-10-12

あ!腕時計と携帯をどっちも別の場所に置いてきてしまった,しかし10分お昼寝がしたい……と思った。Macが手元にあったので,チャチャっとワンライナーでこう書いた。
sleep 600;for i in {1..35};do say -v Karen "Wake up";done
600秒置いた後,35回Karenさんが"Wake up"と言ってくれる。

(補足)
オーストラリア英語ですが,Karenさんいい声だよね。おすすめ。入れてない人は次の方法で入れられます:
https://www.nobuhirosaijo.com/tech-gym2018/say-command-in-mac

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?