taskbeep-0.1.11 is not a library.
TaskBeep - Pomodoro Timer
A Pomodoro timer with productivity tracking that plays a beep sound at the end of each interval.
Features
- Start timer with a custom topic and interval
- Receive beep notification when timer completes
- Signal whether you were working or wasting time
- Track productivity statistics by topic
- Integration-friendly (designed for use with Waybar or other status bars)
Usage
Start a Pomodoro Session
# Default 25-minute (1500s) session
# Custom interval (e.g., 45 minutes)
The timer will:
- Run in the background for the specified interval
- Play a beep sound when the interval completes
- Wait for your response about how productive you were
Respond to Timer
When the timer beeps, signal whether you were productive:
# Signal that you were working on the task
# Signal that you were wasting time
Check Status
# Human-readable format (default)
# JSON format (for scripting)
# Plain key=value format (for parsing)
Shows:
- Current status (running/paused/waiting)
- Current topic
- Interval length
- Sessions completed
- Time remaining
- Whether waiting for working/wasting response
The --format flag supports three output formats:
human(default): Human-readable multi-line outputjson: Structured JSON for easy parsing in scriptsplain: Simple key=value pairs, one per line
View Statistics
Shows:
- Total sessions (working vs wasting)
- Overall productivity percentage
- Breakdown by topic with individual productivity rates
Stop Timer
Integration with Waybar
You can integrate this with Waybar to create a visual Pomodoro timer. Here's an example configuration:
Waybar Config (~/.config/waybar/config)
Pomodoro script (~/.config/waybar/scripts/pomodoro.sh)
#!/usr/bin/env bash
cmd=""
if ; then
fi
raw=
if || ; then
fi
status=""
remaining_seconds=0
while ; do
done
Waybar Style (~/.config/waybar/style.css)
}
}
}
}
This configuration:
- Shows remaining time in the status bar
- Left-click to signal "working"
- Middle-click to pause/resume the timer
- Right-click to signal "wasting"
Workflow Example
-
Start your work session:
-
Work on your task for 25 minutes
-
When the beep sounds, assess your productivity
-
Signal your response (click in Waybar or run command):
-
Take a break or start another session
-
Review your statistics:
Installation
Building
The binary will be at target/release/taskbeep
Requirements
- Linux system with audio output
- Rust 2024 edition or later
- Audio file:
taskbeep.wavin project root