Relax your eyes while programming!
- 资源大小:3.96 kB
- 上传时间:2021-06-30
- 下载次数:0次
- 浏览次数:1次
- 资源积分:1积分
-
标 签:
资 源 简 介
A simple program that runs full screen every specified number of minutes and reminds you to take a break and relax your eyes.
Very crude, very simple.
Developed for unix platform but can be used on windows with minimal tweaks.
Source code tips
Some handy things to notice in the source code
* 1) the crontab /20 trick lets you run your program every X minutes
* 2) env DISPLAY=:0 lets you run an GUI app in crontab
* 3) Scrin.java runs a fullscreen app using native java
* 4) a lock file in the shell script lets your check for multiple instances of the application.
have fun coding BUT take care of your eyes! :)
文 件 列 表
crontab
readme.txt
runscreen.sh
screen.properties
Scrin$1.class
Scrin$2.class
Scrin.class