Live data from Hacker News

Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

github.com

41–50 of 52 posts

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#41
post #10

Implementation for Linux: #!/bin/bash set -e while true; do sleep 20m xlock -allowaccess& pid=$! sleep 20s kill $pid done Check the manpage for xlock and choose a screensaver that won't keep you looking at the monitor.

Explanation? DOes it just lock the screen for 20 secs?

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#42
post #17

There is also a Chrome App called Eye Care. It has slightly more flexibility and runs on Win/Mac/Linux https://chrome.google.com/webstore/detail/eye-care/ingonfahm... +1 for f.lux

Another alternative is Melatonin[1] which tries to imitate f.lux for chrome(book) users.

[1] https://giraj.github.io/melatonin

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#43
post #33

On the topic of eye strain. For anyone not familiar with f.lux, highly recommend you check it out. Everyone that I have recommended it to so far loves it. https://justgetflux.com

I recommend f.lux too. The only problems I've encountered with it are: - doesn't take into account wacky sun hours in nordic countries during winter, I get around this by setting my location to be somewhere else - isn't able to automatically detect when I'm playing a fullscreen videogame, when I would prefer it automatically switch off

I don't know about windows, but a recent-ish update on OSX added the ability to disable per application.

http://i.imgur.com/AwDJYyX.png

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#45
post #37

On the topic of eye strain. For anyone not familiar with f.lux, highly recommend you check it out. Everyone that I have recommended it to so far loves it. https://justgetflux.com

Is anyhthing known about the internals of it, i.e. what code does it use? Something like SetDeviceGammaRamp on Windows? Or does it talk directly to the video card driver (if that is even possible in a generic way)? Or the monitor? Does it still work reasonably if I already have set my display to low brightness etc? edit also wondering: it cannot know if I'm sitting in a completely dark room, a sunlit room or a room a…

Not sure how it works for Windows but the Linux source is available which could give you an idea:

https://github.com/Kilian/f.lux-indicator-applet

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#46
post #22

Earlier quoted context omitted.

I hate HN lately. Now you can get downvoted for your personal experience. Take my upvote.

He probably got downvoted for messing up the technical terms as castell and geococcyxc pointed.

Huh, I hadn't even considered that as a reason. Oh HN, I am disappoint.

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#47
post #10

Implementation for Linux: #!/bin/bash set -e while true; do sleep 20m xlock -allowaccess& pid=$! sleep 20s kill $pid done Check the manpage for xlock and choose a screensaver that won't keep you looking at the monitor.

I accidentally did something similar quite a few years ago when I stupidly set up a grep to run updatedb every two hours. There was several months lag as well between when I did that and my computer started locking up every two hours for a few minutes. And embarrassingly, it took me a week or two to put it together.

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#48
post #10

Implementation for Linux: #!/bin/bash set -e while true; do sleep 20m xlock -allowaccess& pid=$! sleep 20s kill $pid done Check the manpage for xlock and choose a screensaver that won't keep you looking at the monitor.

If you're using Xscreensaver instead of xlock:

    #!/usr/bin/env bash
    set -e
    while true; do
        sleep 20m
        xscreensaver-command -activate
        sleep 20s
        xscreensaver-command -deactivate
    done
This presumes that xscreensaver is configured to have a delay before it is locked (and thus requiring a password to unlock - as would happen if we used `xscreensaver-command -lock`).

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#49
post #9

Is this even usable as a developer? Seems it'll be annoying for something to break my concentration every 20 minutes, losing my flow all the time.

From practical experience, the break in the flow is minimal: you lose your immediate context, not the entire structure you've built up in your mind. And the loss of context isn't always bad, as it's helped me figure out small problems or identify potential problems which I normally miss from being constantly heads down.

Re: Pause Me – Apply the 20-20-20 rule to prevent eyestrain while working

#50
post #47
post #10

Implementation for Linux: #!/bin/bash set -e while true; do sleep 20m xlock -allowaccess& pid=$! sleep 20s kill $pid done Check the manpage for xlock and choose a screensaver that won't keep you looking at the monitor.

I accidentally did something similar quite a few years ago when I stupidly set up a grep to run updatedb every two hours. There was several months lag as well between when I did that and my computer started locking up every two hours for a few minutes. And embarrassingly, it took me a week or two to put it together.

*stupidly set up a cron
Post reply on HN