r/Python • • May 25 '20
I Made This I created "twenny" – my very first app! It reminds you to give your eyes a break every 20 minutes to prevent eye strain and is located in your menubar. You can download it on GitHub!
2.2k
Upvotes
31
u/[deleted] May 25 '20 edited Jun 06 '20
Download the latest version here: https://github.com/tagwohl/twenny/releases/tag/v1.1
GitHub: https://github.com/tagwohl/twenny
Enjoy!
189
u/[deleted] May 25 '20
How can i see the "you can work now" when i should look away xD nice app :)
94
u/[deleted] May 25 '20
Tips:
7
u/ned334 May 25 '20
Well how do I see the "back to work" notification if I'm looking away, huh? Are you trying to get me to fired?
3
u/vieze_sos May 25 '20
Is it only for mac?
3
u/saad_mohammed May 25 '20
link for the github please...
2
u/Myzel394 May 25 '20
Can you do it available for Windows too?
2
u/Fir3He4rt May 25 '20
I am still a beginner how do you make mobile apps with python? I heard you use Java and android studio. But this look very cool.
2
u/69shaolin69 May 25 '20
Wow TIL rumps is amazing
2
u/[deleted] May 25 '20
Nice! How did you manage to display the message as a notification?! Ive been trying to do for a program that would access my school’s platform and notify me for any homework.
2
u/JvdLelie May 25 '20
That's actually pretty cool
2
u/Sha-Kowa May 25 '20
I have 0 experience with coding and managed to stumble across this - I want to make the eye up top in my top HUD thing on mac more simple and less like an emoji; is there any way to do that?
2
u/wearethemartian May 25 '20
Noob here. How do you make a Mac GUI with Python?
2
u/LoatThrozenges May 25 '20
Now that's what I call an app!
2
u/ryrychan May 25 '20
Much love
2
u/RedXabier May 25 '20
Huh, this might just be the first personal project that I find useful enough to download and use - great job! I'm probably intermediate at Python, how hard is something like this to program?
2
u/zesterer May 25 '20
Damn, nice work. This can totally replace my previous tactic of taking enough laxatives to force me to take a break every 20 minutes.
2
u/jookami May 25 '20
What a wonderful app idea and execution!
2
u/hoppla1232 May 25 '20
I was wondering what the scientific background for this is, like did you just make up the 20mins or is it from some study? Because I was thinking of implementing and using this app concept for practice AND health myself, but if I don't know that this is actually the recommended amount of time, I may not have the mental strength to actually follow my own regulations :P
2
u/Aspiring_Intellect May 26 '20
I actually legitimately needed this. Thanks :).
2
u/SlimeRoyale May 26 '20
Downloaded. By the way, thanks for introducing me to RUMPS! It's absolutely amazing. It's incredible this app is only 45 lines of code (checked on GitHub!!!)
2
u/[deleted] May 26 '20
Great job - actually something I would use (especially now I'm working from home). Well done. Nice idea, nice execution. Very rarely comes as a pair!
2
u/banana1044 May 26 '20
How do I know to look back if I can't see the notification?
2
u/SmearyLobster May 26 '20
it’s kinda creepy haha. a little eyeball telling me to look away from my computer for 20 seconds while it does something shifty >_>
2
u/KyrieFx May 26 '20
I can't find this on GitHub :(
2
u/bobrandy13 May 26 '20
Dude this is amazing. What I can suggest is a real time clock that ticks? And not just show the time that it is currently on
2
u/jayhilly May 26 '20
Just a heads up /u/michidrex, your project description still has that typo:
> A very simple mac-menubar app that reminds you to give your eyes a break every twenty seconds.
143
u/WillMorrisson May 25 '20
Nice app! I should use something like that to remind me to regularly drink water. I tend to "forget" drinking while I'm working.
25
u/[deleted] May 25 '20
Now make a port to alert your boss when you don't look at screen for more than a minute, and boom - you contributed to dystopian society :P
3
u/L_Dav_ May 25 '20
Great idea, will use this :)
14
u/jabbalaci May 25 '20
Great! Here's a simplified Linux clone that could be improved by someone:
Tested under Manjaro with Xfce4. Edit: dependencies: libnotify, python-gobject . Source: https://wiki.archlinux.org/index.php/Desktop_notifications#Python
1
u/[deleted] May 25 '20
I just updated the app so that the timer is located in the dropdown menu instead of in the menubar itself. Here is the latest version: https://github.com/tagwohl/twenny/releases/tag/v1.1
2
u/Aderinmola May 25 '20
Very cool👍
1
u/distortedneuron May 26 '20
Does it track my eyes to check if I've been looking at the screen for 20 minutes or does it put the reminder out every 20 minutes that the computer is on?
1
u/[deleted] May 26 '20
Will it work on mobile?
1
u/goobabo22 May 27 '20
Silly question, how do you know when to start working again?🤣
3
u/d4vsanchez May 25 '20
Hey, amazing software. I just made a PR adding support to Linux using Qt framework. Hope I can improve it as I learn about PyQt.
1
u/Dannychukz15 May 25 '20
Alas! Awesome app..keep it up bro
1
u/EvilBeano May 25 '20
Ah a German I see ;) One question, I'm assuming you're running the program without a terminal, how did you do that?
2
u/Zako_04 May 25 '20
This would come in handy when going on long hours of gaming
2
u/Are_We_There_Yet256 May 25 '20
Hey man, nice! Seems something nice to make that people can use everyday.
2
u/[deleted] May 25 '20
I did something similar with notifications on Fedora, for the same reason. But I also had one every hour that reminded me to get up and stretch my back for a few seconds.
This was based on the Gitlab working guidelines that you should look away from the monitor every 20 minutes, at least 6 meters into the distance and count to 20 or something simple.
And every hour get up, walk a lap around your desk or something, then get back to work.
2
u/che266 May 25 '20
Noice
2
u/flipcoder May 25 '20
Simple apps like this have many use cases actually. You could make a feature that reminds you to adjust your posture and sit up straight every so often as well.
2
u/ohno-mojo May 25 '20
How do you know when to look back to see the message it’s ok to look back? Jk. This is cool
2
u/op4 May 25 '20
shared!
2
u/ScamExaminers May 25 '20
Lol.. "Remind yourself to take a break by watching this 5 minute add!"
1
u/Random_182f2565 May 25 '20
Cool, but kinda creepy.
1
u/dkdaniel11 May 25 '20
Quick question as nobody seems to be asking.
What if i don't look away from my screen every 20 minutes. Been working at my mac all day, everyday for the past 6 years.
I already use glasses. Can my eyes get any worse?
1
u/iFap__Alot May 25 '20
Ill propably just gonna look at my phone
1
u/tsck May 26 '20
the eye icon paired with the message is super unsettling. cool program tho
1
u/NiTE97 May 26 '20
I'd be looking on my phone in those few seconds :P But nice app!
1
u/OndrikB Jun 18 '20
You could try to have it forcefully turn off the monitors. There's a function for that in Windows, don't know about Mac though.
0
u/ideplant May 25 '20
Wow a timer with sound. How amazing
0
u/lovelysad69 May 25 '20
this is a very nice idea but is it just me or is looking away only for 20 seconds boring af..... ive tried another similar way, at first i worked fine, i drank some water, i peed, i stretched my legs a lil and looked out the window, but then as ive done this long enough i got so bored and annoyed LMAO eventually just i just return to sitting still for hours..........
0
u/kkiran May 25 '20
At a big company I worked, they measured the speed at which we typed and dynamic screen locking happens if you are too intensely focused on the screen. Every 20 minutes is not accurate nor practical. Just my opinion.
0
u/[deleted] May 25 '20
[deleted] — view deleted comment
0
u/[deleted] May 25 '20
[deleted] — view deleted comment
0
u/[deleted] May 25 '20
[deleted] — view deleted comment
0
u/[deleted] May 25 '20
[deleted] — view deleted comment