Skip to content

arodik/mindful-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mindful Timer ✨✨✨

npm i -g mindful-timer

A simple Pomodoro timer for macOS only that:

  • Automatically enables Do Not Disturb (Focus) mode during work sessions.
  • Displays a system alert instead of a standard notification when the timer finishes.

Usage

# Start a timer (default: 25 minutes)
mindful-timer start [duration]

# View logged sessions
mindful-timer log [period]

# View session statistics
mindful-timer stats [period]

Command Arguments

  • duration: Optional duration of the session in minutes (default is 25).
  • period: Optional time range filter. Supported values: day, week, month, quarter, year, full (default is week).

Options for start

  • -n, --name: Name or description of the session.
  • -t, --tags: List of tags separated by whitespace (e.g. work js).

Usage Example

mindful-timer start 25 -n 'Coding session' -t 'work javascript'

macOS Shortcuts Integration

This library uses the native macOS Shortcuts app under the hood to manage focus mode. You will be prompted to install the required macos-focus-mode shortcut on the first run of the timer.

image

Advanced: Database Location

By default, the database is stored in your home directory:

  • Database path: ~/.mindful-timer/db.ndjson
  • Configuration path: ~/.mindful-timer/config.json

If you want to use a custom directory (e.g., for cloud sync or backup), you can edit the config.json file and specify a custom dataPath:

{
    "dataPath": "/Users/username/Library/Mobile Documents/com~apple~CloudDocs/.mindful-timer-data"
}

About

MacOS CLI Pomodoro timer with automatic Do Not Disturb mode switching

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages