LoginSignup
3
1

More than 5 years have passed since last update.

Pomodoro in Linux

Last updated at Posted at 2017-02-17

新しいソフトを導入するのが面倒だったので、下記で済ませた。

~/bin/pomo
#!/bin/bash

count=1

while true; do
    echo "-------------------"
    echo "pomodoro start"
    notify-send -u critical -i appointment -t 10000 "pomodoro start!"
    sleep 1500
    echo "done step $((count++))"
    echo "take a rest 5 minutes"
    notify-send -u critical -i appointment -t 300000 "pomodoro end..."
    sleep 300
done

実行権限を付けて

chmod +x ~/bin/pomo

下記コマンドをtmuxとかで出しっぱなしにしておく

$ pomo

-------------------
pomodoro start
done step 1
take a rest 5 minutes
-------------------
pomodoro start
done step 2
take a rest 5 minutes

Macの場合は、notify-sendosascript -eとかにしてあげれば動くのか。

3
1
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
3
1