Skip to content

Commit 1ff28d8

Browse files
committed
Release v1.1.0
1 parent c3ff3a0 commit 1ff28d8

File tree

3 files changed

+38
-80
lines changed

3 files changed

+38
-80
lines changed

README.md

+30-79
Original file line numberDiff line numberDiff line change
@@ -29,58 +29,8 @@ Manual installation is not tested in any systems. I will update this page as soo
2929

3030
* Fedora 24: `libappindicator-gtk3`, `python-xlib`, `python-gobject`, `xorg-x11-utils` and `python-dbus`
3131

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 /`
3333

34-
The following files are deployed by SafeEyes
35-
```
36-
opt/
37-
opt/safeeyes/
38-
opt/safeeyes/BreakScreen.py
39-
opt/safeeyes/config/
40-
opt/safeeyes/config/safeeyes.json
41-
opt/safeeyes/config/style/
42-
opt/safeeyes/config/style/safeeyes_style.css
43-
opt/safeeyes/glade/
44-
opt/safeeyes/glade/break_screen.glade
45-
opt/safeeyes/glade/settings_dialog.glade
46-
opt/safeeyes/Notification.py
47-
opt/safeeyes/safeeyes
48-
opt/safeeyes/SafeEyesCore.py
49-
opt/safeeyes/SettingsDialog.py
50-
opt/safeeyes/TrayIcon.py
51-
usr/
52-
usr/share/
53-
usr/share/applications/
54-
usr/share/applications/safeeyes.desktop
55-
usr/share/icons/
56-
usr/share/icons/hicolor/
57-
usr/share/icons/hicolor/128x128/
58-
usr/share/icons/hicolor/128x128/apps/
59-
usr/share/icons/hicolor/128x128/apps/safeeyes.png
60-
usr/share/icons/hicolor/16x16/
61-
usr/share/icons/hicolor/16x16/status/
62-
usr/share/icons/hicolor/16x16/status/safeeyes_disabled.png
63-
usr/share/icons/hicolor/16x16/status/safeeyes_enabled.png
64-
usr/share/icons/hicolor/24x24/
65-
usr/share/icons/hicolor/24x24/status/
66-
usr/share/icons/hicolor/24x24/status/safeeyes_disabled.png
67-
usr/share/icons/hicolor/24x24/status/safeeyes_enabled.png
68-
usr/share/icons/hicolor/32x32/
69-
usr/share/icons/hicolor/32x32/apps/
70-
usr/share/icons/hicolor/32x32/apps/safeeyes.png
71-
usr/share/icons/hicolor/32x32/status/
72-
usr/share/icons/hicolor/32x32/status/safeeyes_disabled.png
73-
usr/share/icons/hicolor/32x32/status/safeeyes_enabled.png
74-
usr/share/icons/hicolor/48x48/
75-
usr/share/icons/hicolor/48x48/apps/
76-
usr/share/icons/hicolor/48x48/apps/safeeyes.png
77-
usr/share/icons/hicolor/48x48/status/
78-
usr/share/icons/hicolor/48x48/status/safeeyes_disabled.png
79-
usr/share/icons/hicolor/48x48/status/safeeyes_enabled.png
80-
usr/share/icons/hicolor/64x64/
81-
usr/share/icons/hicolor/64x64/apps/
82-
usr/share/icons/hicolor/64x64/apps/safeeyes.png
83-
```
8434
If you have any issues in installing Safe Eyes, please report them [here](https://github.com/slgobinath/SafeEyes/issues)
8535

8636
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
8939

9040
## Configuring Safe Eyes
9141
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`.
12043

12144
## Uninstalling Safe Eyes
12245
Use the following commands to uninstall SafeEyes from your system.
@@ -135,7 +58,9 @@ rm ~/.config/autostart/safeeyes.desktop
13558
- Disable the keyboard during break
13659
- Notifications before every break
13760
- Multi-workspace support
61+
- Multi-monitor support
13862
- Elegant and customizable design
63+
- Multi-language support
13964

14065
## Contributing
14166
**Are you a user?**
@@ -154,8 +79,34 @@ Please test Safe Eyes on your system and report any issues [here](https://github
15479

15580
Please test Safe Eyes and create installers for your operating system
15681

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)
157102

158103
## 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+
159110
Version 1.0.9:
160111
* Multi-screen support
161112
* Handling system suspend (Stop and restart during system suspend)

safeeyes/debian/changelog

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
safeeyes (1.0.9-1) xenial; urgency=medium
1+
safeeyes (1.1.0-1) xenial; urgency=medium
22

3+
* Fixing bug in multiscreen support
4+
5+
* Add next break information to tray menu
6+
7+
* Support translation
8+
39
* Adding multiscreen support & handling system suspend
410

511
* Fixing bug in Ubuntu MATE environment

safeeyes/debian/control

+1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ Description: Safe Eyes
2020
- Do not disturb when working with fullscreen applications( Eg: Watching movies)
2121
- Notifications before every break
2222
- Multi-workspace support
23+
- Multi-monitor support
2324
- Elegant and customizable design

0 commit comments

Comments
 (0)