๐ฏ Focuz
Lightweight Beautiful Terminal Pomodoro Timer

๐ ๏ธ Prerequisites
- Rust - Install Rust
๐ฆ Installation
๐ Usage
# Run a timer for specific duration
Examples
Time Format
sor no suffix - seconds (e.g.,30sor30)m- minutes (e.g.,5m)h- hours (e.g.,2h)
โจ๏ธ Keyboard Shortcuts
| Key | Action |
|---|---|
q or Esc |
Quit the timer |
Ctrl+C |
Force quit |
๐ Sound Notifications
- Start Sound - Plays when timer begins
- End Sound - Plays when timer completes
๐๏ธ Building from Source
# Clone the repository
# Build the project
# Run directly
๐งช Running Tests
# Run all tests
# Run with output
๐ Project Structure
focuz/
โโโ src/
โ โโโ main.rs # Entry point
โ โโโ cli/ # Command-line interface
โ โ โโโ mod.rs
โ โ โโโ cli.rs # CLI parsing and duration handling
โ โโโ timer/ # Timer functionality
โ โโโ mod.rs
โ โโโ timer.rs # Core timer logic
โ โโโ display.rs # ASCII art display
โ โโโ sound.rs # Audio notifications
โโโ sounds/ # Audio files
โ โโโ start.wav
โ โโโ end.mp3
โโโ Cargo.toml
โโโ README.md
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.