You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+30-79
Original file line number
Diff line number
Diff line change
@@ -29,58 +29,8 @@ Manual installation is not tested in any systems. I will update this page as soo
29
29
30
30
* Fedora 24: `libappindicator-gtk3`, `python-xlib`, `python-gobject`, `xorg-x11-utils` and `python-dbus`
31
31
32
-
2: Download and extract [safeeyes.tar.gz](https://github.com/slgobinath/SafeEyes/releases/download/v1.0.9/safeeyes.tar.gz) into `/`: `sudo tar -xzvf safeeyes.tar.gz -C /`
32
+
2: Download and extract [safeeyes.tar.gz](https://github.com/slgobinath/SafeEyes/releases/download/v1.1.0/safeeyes.tar.gz) into `/`: `sudo tar -xzvf safeeyes.tar.gz -C /`
If you have any issues in installing Safe Eyes, please report them [here](https://github.com/slgobinath/SafeEyes/issues)
85
35
86
36
4: Start Safe Eyes using this command: `/opt/safeeyes/safeeyes`
@@ -89,34 +39,7 @@ Once started, Safe Eyes will copy the desktop file to `~/.config/autostart` and
89
39
90
40
## Configuring Safe Eyes
91
41
Just install and forget; Safe Eyes will take care of your eyes. To customize the preferences, go to Settings from Safe Eyes tray icon.
92
-
For advanced configuration, go to `~/.config/safeeyes folder`. There you can change the Skip button text in `safeeyes.json` and the look and feel of the break screen in `style/safeeyes_style.css`.
93
-
If you want to add more exercises, you can add them in the `safeeyes.json`. A sample configuration is given below for your reference:
94
-
```
95
-
{
96
-
"break_interval": 15,
97
-
"long_break_duration": 60,
98
-
"long_break_messages": [
99
-
"Walk for a while",
100
-
"Lean back at your seat and relax",
101
-
"Long break exercise 1",
102
-
"Long break exercise 2"
103
-
],
104
-
"no_of_short_breaks_per_long_break": 5,
105
-
"pre_break_warning_time": 10,
106
-
"short_break_duration": 15,
107
-
"short_break_messages": [
108
-
"Tightly close your eyes",
109
-
"Roll your eyes",
110
-
"Rotate your eyes",
111
-
"Blink your eyes",
112
-
"Have some water",
113
-
"Short break exercise 1",
114
-
"Short break exercise 2"
115
-
],
116
-
"skip_button_text": "Cancel",
117
-
"strict_break": false
118
-
}
119
-
```
42
+
You can change the look and feel of the break screen in `~/.config/safeeyes/style/safeeyes_style.css`.
120
43
121
44
## Uninstalling Safe Eyes
122
45
Use the following commands to uninstall SafeEyes from your system.
@@ -154,8 +79,34 @@ Please test Safe Eyes on your system and report any issues [here](https://github
154
79
155
80
Please test Safe Eyes and create installers for your operating system
156
81
82
+
**Can you translate English to your mother tongue (or whatever the language)?**
83
+
84
+
Show your support by translating Safe Eyes.
85
+
86
+
## Translating Safe Eyes
87
+
From version 1.1.0, Safe Eyes supports translation. Translation files for each langauges must be placed in `/opt/safeeyes/config/lang` directory. The language file name must follow [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code standard. For example, the language file of English must be `en.json`. Follow these steps to translate Safe Eyes to your language.
88
+
89
+
1. Copy `/opt/safeeyes/config/lang/en.json` to `/opt/safeeyes/config/lang/<iso-639-1-language-code>.json`
90
+
91
+
2. Provide `language_name` in the language itself and `language_name_en` in English.
92
+
93
+
3. Translate other property values to the selected language.
94
+
95
+
**Note 1:** The `{}` used in property values will be replaced by runtime variables related to those commands. For example the `{}` in `Next break at {}` will be replaced by time at the runtime.
96
+
97
+
**Note 2:** Use Unicode when translating Safe Eyes.
98
+
99
+
**Note 3:** To change the language of Safe Eyes, change the `language` property in `~/.config/safeeyes/safeeyes.json` to the ISO 639-1 code of your language and restart the Safe Eyes.
100
+
101
+
For more details, have a look at existing language files: [lang](https://github.com/slgobinath/SafeEyes/tree/master/safeeyes/safeeyes/config/lang)
157
102
158
103
## History
104
+
Version 1.1.0:
105
+
* Multi-language support
106
+
* Fixed bug in multi-screen support
107
+
* Fixed bug in break screen transparency
108
+
* Next break information in tray menu
109
+
159
110
Version 1.0.9:
160
111
* Multi-screen support
161
112
* Handling system suspend (Stop and restart during system suspend)
0 commit comments