-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c5bfa6c
Showing
36 changed files
with
929 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
target | ||
scripts | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# Rule 20 20 20. | ||
This is a utility software to make you pause what you are doing every X minutes, which are passed from command line. | ||
|
||
The app waits X minutes then warnings the user by playing Half Life game wav sounds to look away from the computer or screen for 20 seconds long. You can also keep your eyes closed during the activation of 20 20 20 rule. | ||
|
||
This is a great tool for keeping your eye healthy as a developer. | ||
|
||
Personally I've used this software for about 1 year and the state of my eyes improved dramatically. | ||
|
||
Read more about 20 20 20 rule: | ||
https://www.healthline.com/health/eye-health/20-20-20-rule#definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[package] | ||
name = "rule_202020" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
default-run = "rule_202020" | ||
|
||
[[bin]] | ||
name = "rule_202020" | ||
path = "src/bin/main.rs" | ||
|
||
|
||
[dependencies] | ||
core-dev = { path = "../core-dev", features = [ | ||
"datetime", "audio", "core", "linuxapi", "image"] } | ||
notify-rust = { version = "4.5.8", features = ["images"] } | ||
xdg-utils = "0.4.0" | ||
ctrlc = { version = "3.2.1", features = ["termination"] } | ||
open = "2.1.1" | ||
chrono = "0.4.19" | ||
time = { version = "0.3.9", features = ["parsing"] } | ||
clap = { version = "3.1.8", features = ["derive"] } | ||
ansi_term = { version = "0.12.1", features = ["derive_serde_style", "serde"] } | ||
serde = { version = "1.0.136", features = ["derive"] } | ||
serde_json = "1.0.79" | ||
color-backtrace = "0.5.1" | ||
soloud = "1.0.2" | ||
image = "0.24.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
 | ||
|
||
|
||
<p align="center"> | ||
<a href="https://choosealicense.com/licenses/mit/" alt="License: MIT"> | ||
<img src="https://img.shields.io/badge/license-MIT-green.svg" /> | ||
</a> | ||
<br> | ||
<a href="https://www.rust-lang.org"> | ||
<img src="https://img.shields.io/badge/rustc-1.60+-yellow?logo=rust"> | ||
</a> | ||
<br> | ||
<a href="https://www.rust-lang.org"> | ||
<img src="https://img.shields.io/maintenance/yes/2022"> | ||
</a> | ||
</p> | ||
|
||
|
||
# Rule 20 20 20 | ||
This is a utility software to make you pause what you are doing every X minutes, which are passed from command line. | ||
|
||
The app waits X minutes then warnings the user by playing Half Life game wav sounds to look away from the computer or screen for 20 seconds long. You can also keep your eyes closed during the activation of 20 20 20 rule. | ||
|
||
This is a great tool for keeping your eye healthy as a developer. | ||
|
||
Personally I've used this software for about 1 year and the state of my eyes improved dramatically. | ||
|
||
Read more about [`20 20 20 rule`](https://www.healthline.com/health/eye-health/20-20-20-rule#definition) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
|
||
# TODO | ||
|
||
great todos for improvement | ||
|
||
- [x] load the audio files into the binary (binary bloat) | ||
- [x] load the notification icon from the binary (binary bloat 2) | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] | ||
- [ ] |
Oops, something went wrong.