dbader / alfred-countdown-timer Goto Github PK
View Code? Open in Web Editor NEWA countdown timer extension for Alfred.app
Home Page: http://dbader.org/blog/alfred-timer-extension
License: MIT License
A countdown timer extension for Alfred.app
Home Page: http://dbader.org/blog/alfred-timer-extension
License: MIT License
Is the .mp4 file bundled anywhere where i can change it? Not very familiar with alfred extensions but id be happy to share my results if anyone can point me in the right direction!
The reason for wanting this is that the sound is too dominant for me to use it at work as i want, but the timer has been really helpful so i would like to make it work :)
Building the .alfredextension
and .alfredworkflow
files by exporting from Alfred is very clumsy.
There should be a way to create these files via some command line magic. Then we could simply do make packages
to build a new release.
By default, this does not seem to be operational on MacOS Monterey.
Suggested workaroung:
pip3 install -U pyobjc
Then, in Alfred Preferences, pick this workflow from the workflow list. Click the Run Script object, use Configure Object from the context menu.
Then, edit script. Use direct reference to Python3.
/usr/local/bin/python3 timer.py {query} > /dev/null 2>&1 &
Is it possible to change the notification icon? I'm getting Finder icon right now.
Also would be nice to have a command line argument for volume and alarm sound. So it can be easily customised by the users from the workflow page.
Thanks for the awesome workflow!
Alfred 2 recently introduced a new External Trigger workflow object that listens for AppleScript messages and injects them into the workflow's message pipeline.
Maybe we could use this feature together with the Post Notification to replace the somewhat hacky OS X notifications code.
I've played a bit with this idea and the Python applescript bridge:
import ScriptingBridge
alfred = ScriptingBridge.SBApplication.applicationWithBundleIdentifier_("com.runningwithcrayons.Alfred-2")
alfred.runTrigger_inWorkflow_withArgument_(
"org.dbader.timer",
"org.dbader.alfred.timer",
"Hello, World."
)
You need to run this with the system Python like so: $ /usr/bin/python2.7 alfreddemo.py
.
ScriptingBridge
module being present this means we have the same problems with people replacing their system Python install or manually removing the module. A workaround could be to run the osascript
command line tool from a Python script to post notificationsAs a user, I want to snooze alarms so that I don't forget but I don't have to take action immediately
As a user, I want short timers to have short snoozes... maybe 5min default, but if the timer is less than 5min, make it 1min? I dunno...
OR
As a user, I want two snooze buttons, one for a short snooze, one for a long one
I might try to work on this - will you merge it if I do?
hello,when i run the timer.py it tells me that:"no module named ojbc"
i check every file but can't find the module,it's kind of you if you tell me what's matter with me.thank you
like "0 it's time to get up"
Why is not there any pause functionality.
Loving the simplicity of this timer, would be good to have a feature where I can set a timer for a specific time e.g @17:30
would set the timer to go off at 17:30 whereas without the @
symbol current behaviour is kept (17 m 30s).
Even allowing basic system default sounds would be nice
I just tried your extension for Alfred, hoping to be able to remember that my tea was done, but it didn't work, and my tea is ruined! Ruined I tell you, ruined!!
Well not really, but still, I can't get the extension to work. I type "timer 5:30" into alfred, it recognizes the alias but when I hit ENTER nothing happens. I tried making it non-silent and the terminal showed python: can't open file 'timer.py': [Errno 2] No such file or directory
Please let me know if I can help figuring this issue out :)
It'd be great that we can list all current timer item and having an ability to cancel them :)
What do you guys think ?
Thanks so much for creating this workflow. I can see myself using this a lot.
Is there a way to turn off or change the audio notification?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.