3 ms·
Haha nice. I do basically the same thing except with a script. while true; do sleep 900 zenity --entry --text="what u doin" >> done.txt
by vortico 7y ago
Haha nice. I do basically the same thing except with a script.
while true; do
sleep 900
zenity --entry --text="what u doin" >> done.txt
done
Although now it's just a reminder that isn't logged.
zenity --question --text "Are you working?"
It doesn't really mean "Are you goofing off" but rather "Are you doing what truly matters right now instead of refactoring code or responding to less-than-useful emails?"
- corobo 7y agoI have similar that ties in to Toggl timers. If the time's within the work day and I've not got a timer going it bugs me to do stuff [1] If there is a timer running it also knows (based on my calendar) if I should be doing something else and asks if I am and offers to change the timer for me [2] [1] custom script [2] the same custom script pings my phone/tablet via a Pushcut webhook. This pings me the notification but also allows me to tap the notification and start a new, relevant, timer using iOS shortcuts and Zapier
- primitur 7y agowhile sleep 900 ; do .. done true not required. sleep is true unless interrupted.
- insertnickname 7y agoYou don't believe that refactoring truly matters?
- penagwin 7y agoDepends on the refactoring :P IMO you can spend days shuffling around the same code if you want. It's not that refactoring is bad it's a priority thing. Also if you refactor too frequently that's a sign you need to take a step back and more thoroughly plan out your system.
- vortico 7y agoI've never had a boss or customer say "I need those class names changed, and before Tuesday!" :) It sometimes helps achieve goals, but it's never the primary goal itself.
- justinjlynn 7y agoRefactoring code is part of the work being done much like emptying the dust bin is a part of ensuring you can continue to clean house effectively. Leave one and the other suffers. It's a goal as much as having a clean house is - it is inseparable from it and a direct consequence of doing it, but it is often discounted or ignored - because it is seen as a separate task. It is not.
- masukomi 7y agothis. 100x this. You want good code that's maintainable? You're refactoring (and probably adding tests) as you go.
- cabaalis 7y agoI wonder if it'd be possible to check if only mouse events have occurred within the past 10 minutes or so. Then pop up a message saying "Stop browsing and get back to work!"