A cross-platform terminal CLI application to remind you to change sitting positions and rest your eyes. Automatically alternates between work and break modes with audio notifications.
- Work Mode (default: 20 minutes) - Focus time
- Break Mode (default: 5 minutes) - Rest time
- Auto-repeat cycles between work and break modes indefinitely
- Beautiful terminal UI with progress bar
- Different notification sounds for each transition
- Audio files embedded in the binary (single file distribution)
- Cross-platform support (Linux, macOS, Windows)
- Clone or download the source code
- Ensure you have Go 1.22+ installed
- Install dependencies:
go mod download- Build for your platform:
go build -o sehat./sehat./sehat --work=30m --break=10m| Flag | Description | Default |
|---|---|---|
--work |
Work duration | 20m |
--break |
Break duration | 5m |
- Press
qorCtrl+Cto quit
Audio notification sounds are sourced from Mixkit Free Sound Effects.
The application uses two embedded audio files:
- notif.mp3 - Played when work phase ends (transitioning to break)
- break.mp3 - Played when break phase ends (transitioning to back to work)
To use custom sounds:
- Replace
notif.mp3and/orbreak.mp3in the project directory - Rebuild the binary:
go build -o sehatThe application automatically detects and uses the appropriate audio player for your platform:
- macOS: Uses
afplay(built-in) - Linux: Uses
aplay,paplay,mpg123,ffplay, orplay(whichever is available) - Windows: Uses PowerShell Media.SoundPlayer
Build for different platforms from any system:
# Linux (current platform)
go build -o sehat
# macOS Intel
GOOS=darwin GOARCH=amd64 go build -o posture-reminder-mac
# macOS Apple Silicon (M1/M2/M3)
GOOS=darwin GOARCH=arm64 go build -o posture-reminder-mac-arm64
# Windows
GOOS=windows GOARCH=amd64 go build -o posture-reminder.exesehat/
├── main.go # Source code
├── notif.mp3 # Work completion sound
├── break.mp3 # Break completion sound
├── go.mod # Go module definition
├── go.sum # Dependencies checksum
└── README.md # This file
- Language: Go 1.22+
- TUI Framework: Bubbletea by Charmbracelet
- Audio: Embedded MP3 files, extracted to temp files during playback
- Distribution: Single binary with embedded assets (no external dependencies)
This timer helps you:
- Avoid prolonged sitting (linked to various health issues)
- Rest your eyes regularly (reduces eye strain)
- Maintain better posture through periodic breaks
- Follow the Pomodoro Technique for productivity
This software is free to use.
Feel free to submit issues, fork the repository, and create pull requests for any improvements.
Remember to take care of your health while working. Regular breaks are essential for long-term well-being.