有没有保护视力,电脑每隔一小时强制黑屏 15 分钟的软件?

2019-03-04 10:03:52 +08:00
 kisshere

不要自动关机,只是强制黑屏的软件

8509 次点击
所在节点    程序员
68 条回复
grewer
2019-03-04 10:07:28 +08:00
Recess 可以试试
不过 不是黑屏 是弹出一个模态框一样的 可以点掉
rochek
2019-03-04 10:16:26 +08:00
护眼啦
kanata
2019-03-04 10:18:13 +08:00
歪个楼。。。我的 galaxy watch 每隔一个小时都震动提示让我起来运动。。。不过我从来没管就是了。
klmun
2019-03-04 10:18:48 +08:00
黑屏为了方便刷手机吗?
mmp123
2019-03-04 10:19:07 +08:00
强制划水
jingyulong
2019-03-04 10:19:16 +08:00
不要挣扎了,没用
firedsxist0
2019-03-04 10:21:17 +08:00
....简直不能更简单~
是外接显示器不?是的话买智能插排,连接显示器电源,设定好场景,每隔 1 小时断开供电 15 分钟,轻松解决
shuizhongyu10
2019-03-04 10:23:46 +08:00
linux 的话 crontab 加个锁屏任务就行,每隔一小时锁屏一次
windows 的话应该也有类似的定时任务吧
ctro15547
2019-03-04 10:24:24 +08:00
自己写一个
thfurior
2019-03-04 10:24:45 +08:00
EyeDefender,就 100+KB
deming
2019-03-04 10:33:55 +08:00
EyeFoo 眼镜护士,时间自定义。
lengyihan
2019-03-04 10:34:15 +08:00
自己都控制不住自己的人。别希望用你能控制的机器控制你自己了。
doudouwu
2019-03-04 10:37:42 +08:00
用一个智能插座,电脑 /显示器 电源插上面,执行每一小时断电,15 分钟恢复。
我觉得很硬核 /dog
dany813
2019-03-04 10:40:23 +08:00
没卵用的
iyaozhen
2019-03-04 10:43:15 +08:00
看来楼主工作还是不忙,不现实呀
luoway
2019-03-04 10:43:43 +08:00
有没有 mac 可用的?
janus77
2019-03-04 10:44:02 +08:00
定个闹钟到时候自己把显示屏关了不就完了
zsdroid
2019-03-04 10:44:24 +08:00
每隔一小时强制黑屏 60 分钟.。。。。。
fengjianxinghun
2019-03-04 10:52:58 +08:00
@luoway mac 上能用的
```
#!/usr/bin/env bash

cd /tmp

# Create the source file
cat > main.m << EOF

#import <objc/runtime.h>
#import <Foundation/Foundation.h>

int main () {
NSBundle *bundle = [NSBundle bundleWithPath:@"/Applications/Utilities/Keychain Access.app/Contents/Resources/Keychain.menu"];

Class principalClass = [bundle principalClass];

id instance = [[principalClass alloc] init];

[instance performSelector:@selector(_lockScreenMenuHit:) withObject:nil];

return 0;
}

EOF

# Compile the source file
clang -framework Foundation main.m -o lockscreen
```


```
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import Foundation
import objc
import AppKit
import sys
import os
import threading
import functools
import time

NSUserNotification = objc.lookUpClass('NSUserNotification')
NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter')



def notify(title, subtitle, info_text, delay=0, sound=False, userInfo={}):
notification = NSUserNotification.alloc().init()
notification.setTitle_(title)
notification.setSubtitle_(subtitle)
notification.setInformativeText_(info_text)
notification.setUserInfo_(userInfo)
if sound:
notification.setSoundName_("NSUserNotificationDefaultSoundName")
notification.setDeliveryDate_(Foundation.NSDate.dateWithTimeInterval_sinceDate_(delay, Foundation.NSDate.date()))
NSUserNotificationCenter.defaultUserNotificationCenter().scheduleNotification_(notification)
time.sleep(5)
curr_path = os.path.dirname(os.path.abspath(__file__))
os.system("{}/lockscreen".format(curr_path))

def work_fn():
notify(title="STOP!!!!!!!!!!", subtitle="take a rest", info_text="AAAAAAAAAAAAAAAAAAAAAAAAA", sound=True)


def main():
work_fn()


if __name__ == '__main__':
main()
```

然后丢到 launchctl 一小时跑一次这个 python 脚本
shuqin2333
2019-03-04 10:57:41 +08:00
强制自己多喝水,然后就能隔段时间跑躺厕所。这样就能让你的眼睛休息啦

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/540716

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX