aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 8d4ff5437a6c936f8acb8142cf0a7fab384ff49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# pomoru

A minimalist Pomodoro TUI with a task list, written in Rust.

`pomoru` is a keyboard-driven TUI application for focused work. It combines a Pomodoro timer with a small task manager so you can track what you’re working on without leaving the terminal.

---

## Features

### Timer

* Work, short break, and long break sessions
* Customizable durations
* Desktop notifications when sessions end

### Tasks

* Add, edit, delete tasks
* Toggle completion
* Task list persists across runs

### Design

* Keyboard-only interaction
* Minimalist interface (Catppuccin Mocha Themed)
* Configuration saved locally

---

## Screenshots

![Timer screen](screenshots/1.png)
![Task screen](screenshots/2.png)
![Input modal](screenshots/3.png)

---

## Keybindings

### Timer screen

| Key     | Action                            |
| ------- | --------------------------------- |
| `space` | Start or pause timer              |
| `tab`   | Change session type (when paused) |
| `e`     | Edit current session time         |
| `r`     | Reset timer                       |
| `t`     | Open task list                    |
| `q`     | Quit                              |

### Task screen

| Key         | Action               |
| ----------- | -------------------- |
| `i`         | Add new task         |
| `enter`     | Toggle task done     |
| `e`         | Edit selected task   |
| `d`         | Delete selected task |
| `j` / `↓`   | Move down            |
| `k` / `↑`   | Move up              |
| `t` / `esc` | Back to timer        |

---

## Configuration

`pomoru` saves its state automatically when you quit.

Config file location:

```text
~/.config/pomoru/config.toml
```

Saved data includes:

* Work and break durations
* Task list

Example:

```toml
work_time_mins = 25
short_break_mins = 5
long_break_mins = 15

[[tasks]]
title = "Read documentation"
is_done = false
```

---

## Installation

### Build from source

```bash
git clone https://github.com/RanXom/pomoru
cd pomoru
cargo run --release
```

To install the binary:

```bash
cargo install --path .
```

---

## Built with

* Rust
* ratatui
* crossterm
* tokio
* notify-rust
* serde + toml

---

## License

MIT