Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new plugin: RescueTime Activities #2067

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stared
Copy link

@stared stared commented Nov 14, 2024

I just developed a new plugin, and I would be excited to share it here.

RescueTime Activities: Monitor your RescueTime activities and distractions directly from the macOS menu bar with this xbar plugin.

Source is at https://github.com/stared/xbar-rescuetime-activities.

Screenshot 2024-11-14 at 13 21 52

This plugin is inspired by the RescueTime plugin by Paul Traylor.
I rewrote it to display a detailed list of activities rather than just a summary of productive and non-distractive time.

import urllib.request


API_KEY_PATH = os.path.expanduser("~/Library/RescueTime.com/api.key")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using xbar variables to manage this. Would make download and setup easier for others.

@@ -0,0 +1,262 @@
#!/usr/bin/env PYTHONIOENCODING=UTF-8 python3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change allows python to be picked up from a variety of places -- macOS install, Homebrew on Intel silicon install, Homebrew on M1 silicon install, etc.

Suggested change
#!/usr/bin/env PYTHONIOENCODING=UTF-8 python3
#!/usr/bin/env -S PATH="${PATH}:/opt/homebrew/bin:/usr/local/bin" PYTHONIOENCODING=UTF-8 python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants