<commit_before># T0maten - A helper for doing daily pomodoro on the terminal

This is a collection of tools and scripts for working with pomodoro. I use this for my everyday work.

## Install

Clone this repo and create a pomodori and a html folder.

    git clone https://github.com/indero/t0maten.git ~/pomodoro
    mkdir ~/pomodoro/pomodori; mkdir ~/pomodoro/html;

## Tools

### thyme
Thyme is a rubygem and a simple pomodoro timer.

    gem install thyme

**~/.thymerc:**

    option :b, :break, 'start a break' do
      set :timer, 5*60
      run
    end
    option :c, :bigbreak, 'start a bigbreak' do
      set :timer, 15*60
      run
    end
    after do |seconds_left|
      `notify-send -u critical -i /usr/share/icons/gnome/32x32/status/dialog-warning.png "Thymes Up!"` if seconds_left == 0
    end

### tmux

If you use TMUX as terminal multiplexer you can add a pomodoro status to your
tmux status-line

**~/.thymerc:**<commit_msg>Add info about notifications on MacOS<commit_after># T0maten - A helper for doing daily pomodoro on the terminal

This is a collection of tools and scripts for working with pomodoro. I use this for my everyday work.

## Install

Clone this repo and create a pomodori and a html folder.

    git clone https://github.com/indero/t0maten.git ~/pomodoro
    mkdir ~/pomodoro/pomodori; mkdir ~/pomodoro/html;

## Tools

### thyme
Thyme is a rubygem and a simple pomodoro timer.

    gem install thyme

**~/.thymerc:**

    option :b, :break, 'start a break' do
      set :timer, 5*60
      run
    end
    option :c, :bigbreak, 'start a bigbreak' do
      set :timer, 15*60
      run
    end
    after do |seconds_left|
      `notify-send -u critical -i /usr/share/icons/gnome/32x32/status/dialog-warning.png "Thymes Up!"` if seconds_left == 0
    end

Or, to send notifications under MacOS use the following inside the `after` block:

    `osascript -e 'display notification "Thymes Up!" with title "Pomodoro"'` if seconds_left == 0


### tmux

If you use TMUX as terminal multiplexer you can add a pomodoro status to your
tmux status-line

**~/.thymerc:**
{'fraction_non_alphanumeric': 0.09537434430138293, 'fraction_numerical': 0.013829279923700524, 'mean_word_length': 3.065891472868217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5022223', 'n_tokens_mistral': 734, 'n_tokens_neox': 687, 'n_words': 273}