Skip to content

Conversation

@just-some-tall-bloke
Copy link

Adds a new plugin focus_tracker.10s.py that helps users maintain focus by monitoring their active window during work sessions. It acts as a system-aware timer that detects if the user has switched to a distracting application.

Features:

Active Window Monitoring: Uses osascript to detect the frontmost application.

Visual Feedback: The menu bar icon changes color (Green for work, Red for distraction) based on the active app.

Session Tracking: Tracks the duration of the current "Deep Work" session.

State Persistence: Uses a temporary file to ensure the timer persists across xbar refreshes.

Customizable: Users can easily edit the WORK_APPS and DISTRACTION_APPS lists within the script to match their workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants