A few weeks back I setup a pomodoro workflow on my primary desktop running i3, polybar and Archlinux. The flow and scripts are built around the uair pomodoro app.

- We defined two types of sessions in uair config. Both are hooked to a shell script (see step 4 & 5).
- User has configured hotkeys to toggle sessions (break or work) and start/stop them in i3 config.
- Hotkeys run the
uairctl
command to instruct uair - change current session, or toggle its running state. uairctl
passes the instruction touair
.- On a session start,
uair
will invoke the configured shell scripts. - These scripts may store some state in a file, e.g., session count.
Polybar is configured to read uair
output via the pomo.sh
shell script. On start this script will run uair
command.
I think this flow is a good example of composing tools that just do one thing well to build complex workflows. Hope our AI workflows will also be this simple and composable someday!