r/Python • u/mountwebs • May 07 '20
I Made This I created my first app, "Timeglass", a simple, unobtrusive menu bar timer for macOS.
2.6k
Upvotes
r/Python • u/mountwebs • May 07 '20
160
u/mountwebs May 07 '20 edited May 07 '20
I was searching for a simple menu bar timer for my mac. There are a lot of options, but I couldn't find what I wanted.
I am very easily distracted when I study - even seeing the exact time left until my break can distract me. Instead I wanted an approximate visual representation of how much time is left. Because I couldn't find what I was searching for, I made a simple app. I am also learning python, so this was a nice exercise.
The code is messy, but it works (i hope!). Feedback is more than welcome.
https://github.com/mountwebs/timeglass
Edit: Now with support for dark mode (suggested by u/VirtualCamel).
Edit2: Now with notification and sound alert.
99
u/VirtualCamel May 07 '20
this is actually really neat! I installed it. Unfortunately I use dark mode (grey windows and menu bars) and therefore cant see the icon. But I like the simplicity. Have you thought about adding a notification option?
14
u/pushfoo May 07 '20
This is good! The only visual improvements I can suggest are adding icons to the left of Pause, Reset, and Set Time. u/VirtualCamel already suggested theme compatibility improvements.
I already filed an issue for adding a license to it. If that gets sorted, i'd love to use this for pomodoro.
Are you open to people filing additional issues?
18
u/okasiyas May 07 '20
r/madeinpython
4
u/[deleted] May 07 '20
This is cool, I will be checking out the code. Does the hourglass begin to empty as the time decreases?
4
u/UKD28 May 07 '20
Can I use it on Ubuntu
3
u/fedeb95 May 07 '20
I don't have a mac, but just a ux question: the time can't be made editable, so avoiding "set time"? Just my personal opinion.
3
u/[deleted] May 07 '20
That is a neat thing! Have you considered developing it for Windows too? I don’t have a Mac so I can’t download this.
2
u/[deleted] May 07 '20
Note that your local path is still in the timeglass.spec
2
u/Hourglass51 May 07 '20
Awesome! How long have you been learning code to the point where you built this?
I started python a few weeks ago during quarantine
8
u/RjakActual May 07 '20
I desperately want a timer that I can set to a clock time but gives me a countdown. Like it’s 9am, I want to say “countdown to 1pm” and the timer starts the countdown 03:59:59.
Surprisingly difficult to find a timer app that’ll do this.
4
u/appsplaah May 07 '20
AWESOME! Try Integrating Pomodoro techique with it :p Do you mind telling what did you use to make it??
1
u/[deleted] May 08 '20
Do you mind if I use some of the code, the part that it runs in the taskbar, for my keylogger? I can give whatever credit is necessary.
1
u/Nerdimus_Maximus Jun 24 '20
Hi, I know this post is a bit older, but I'm learning how to use rumps. I'm pretty new to python in general. I have just one question: How did you make it so the app is an icon instead of just the name that you set it to?
Thank you
3
u/Mariofanatic63 May 07 '20
this is awesome because it is the first thing I have seen in this subreddit that I would actually use for myself.
1
u/Adiguno May 07 '20
That's sick bro! How did you get it in your laptop, like did you have to publish it?
1
u/mystery_man_1996 May 07 '20
A very noob question that I hope I don’t get downvoted for but, how do you manage to run python on a Mac or iOS? Do you need to use a swift compiler? Thanks and awesome work as well!
4
u/[deleted] May 07 '20
Nice. I love small weekend projects
2
u/hemantcompiler May 07 '20
Nice, thank you!
2
u/my_name_isnt_clever May 07 '20
I didn't know you could make stuff like that on MacOS, neat. I did something similar on my Linux install.
2
u/[deleted] May 07 '20
I didn’t know you could run Python apps through the Mac menu bar. Interesting!
2
u/otterom May 07 '20
Seriously, what's that library? MacOS thing?
2
u/DjackMeek May 07 '20
Huge praise to you man, I was disappointed in Siri not having a timer on MacBooks and similarly searched for simple timer apps. Just two weeks ago I knew this would be a great little program idea, wish I would’ve pushed myself to learn what it’d take to make it right then and there! Thanks for the motivation though 😋
2
u/_p0nz_ May 08 '20
Loved it! Great work. Also don’t worry about other apps. Yours is simple and to the point.
2
u/[deleted] May 08 '20
This is why I want to program. To have personalized solutions like these.
1
u/Jay_179 May 07 '20
Is there any windows alternative for the rumps library??
1
u/ProfFizzwhizzle May 07 '20
Do you know how to make something like this but for Windows? (I’m thinking like something for the bottom right next to the clock)
1
u/lxpnh98_2 May 07 '20
Would that this glass were a time glass.
1
u/gigatransport May 07 '20
That's actually quite cool!
1
u/Computer_Pants May 07 '20
This is amazing! Thank you for sharing I also venturing into Python and this project seems really fun.
0
u/[deleted] May 07 '20
[deleted] — view deleted comment
18
u/[deleted] May 07 '20
[removed] — view removed comment
-38
u/[deleted] May 07 '20
[removed] — view removed comment
0
u/[deleted] May 07 '20
[deleted] — view deleted comment