Skip to content

Instantly share code, notes, and snippets.

@goldylucks
Created July 1, 2017 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldylucks/43856e9d5e2380c912e2da1b1cd17fbc to your computer and use it in GitHub Desktop.
Save goldylucks/43856e9d5e2380c912e2da1b1cd17fbc to your computer and use it in GitHub Desktop.
Safe Eyes file after `mkdir -p ~.config/safeeyes/style`
{
"active_window_class": {
"skip_break": [],
"take_break": []
},
"audible_alert": true,
"break_interval": 15,
"disable_options": [
{
"label": "for_x_minutes",
"time": 30,
"unit": "minute"
},
{
"label": "for_x_hour",
"time": 1,
"unit": "hour"
},
{
"label": "for_x_hours",
"time": 2,
"unit": "hour"
},
{
"label": "for_x_hours",
"time": 3,
"unit": "hour"
}
],
"idle_time": 2,
"language": "en",
"long_break_duration": 60,
"long_breaks": [
{
"name": "long_break_walk"
},
{
"name": "long_break_lean_back"
}
],
"meta": {
"config_version": 3
},
"no_of_short_breaks_per_long_break": 5,
"pre_break_warning_time": 10,
"short_break_duration": 15,
"short_breaks": [
{
"name": "short_break_close_eyes"
},
{
"name": "short_break_roll_eyes"
},
{
"name": "short_break_rotate_clockwise"
},
{
"name": "short_break_rotate_counter_clockwise"
},
{
"name": "short_break_blink"
},
{
"name": "short_break_focus_far_distance"
},
{
"name": "short_break_drink_water"
}
],
"strict_break": false
}
2017-07-01 19:50:11,897 [INFO]:[MainThread] Starting Safe Eyes
2017-07-01 19:50:11,898 [INFO]:[MainThread] Initialize the tray icon
2017-07-01 19:50:11,918 [INFO]:[MainThread] Initialize the break screen
2017-07-01 19:50:11,918 [INFO]:[MainThread] Initialize the core
2017-07-01 19:50:11,918 [INFO]:[MainThread] Scheduling next break
2017-07-01 19:50:11,918 [INFO]:[Thread-1] Update next break information
2017-07-01 19:50:11,919 [INFO]:[MainThread] Initialize the notification
2017-07-01 19:50:11,936 [INFO]:[Thread-1] Pre-break waiting for 15 minutes
2017-07-01 19:52:29,013 [INFO]:[MainThread] Show Settings dialog
2017-07-01 19:52:40,848 [INFO]:[MainThread] Saving settings to safeeyes.json
2017-07-01 19:52:40,849 [INFO]:[MainThread] Stop the core
2017-07-01 19:52:40,853 [INFO]:[MainThread] Initialize SafeEyesCore with modified settings
2017-07-01 19:52:40,854 [INFO]:[MainThread] Initialize the core
2017-07-01 19:52:40,854 [INFO]:[MainThread] Initialize the break screen
2017-07-01 19:52:40,884 [INFO]:[Thread-1] Pre-break waiting is over
2017-07-01 19:52:41,856 [INFO]:[Thread-3] Scheduling next break
2017-07-01 19:52:41,857 [INFO]:[Thread-4] Update next break information
2017-07-01 19:52:41,859 [INFO]:[Thread-4] Pre-break waiting for 1 minutes
2017-07-01 19:53:07,194 [INFO]:[MainThread] Show Settings dialog
2017-07-01 19:53:13,274 [INFO]:[MainThread] Saving settings to safeeyes.json
2017-07-01 19:53:13,275 [INFO]:[MainThread] Stop the core
2017-07-01 19:53:13,283 [INFO]:[MainThread] Initialize SafeEyesCore with modified settings
2017-07-01 19:53:13,284 [INFO]:[MainThread] Initialize the core
2017-07-01 19:53:13,285 [INFO]:[MainThread] Initialize the break screen
2017-07-01 19:53:13,286 [INFO]:[Thread-4] Pre-break waiting is over
2017-07-01 19:53:14,287 [INFO]:[Thread-6] Scheduling next break
2017-07-01 19:53:14,289 [INFO]:[Thread-7] Update next break information
2017-07-01 19:53:14,295 [INFO]:[Thread-7] Pre-break waiting for 2 minutes
2017-07-01 19:55:14,296 [INFO]:[Thread-7] Pre-break waiting is over
2017-07-01 19:55:14,297 [INFO]:[Thread-7] Ready to show the break
2017-07-01 19:55:14,298 [INFO]:[MainThread] Searching for full-screen application
2017-07-01 19:55:14,327 [INFO]:[Thread-9] Show pre-break notification
2017-07-01 19:55:14,416 [INFO]:[Thread-9] Wait for 10 seconds which is the time to prepare
2017-07-01 19:55:24,418 [INFO]:[MainThread] Searching for full-screen application
2017-07-01 19:55:24,438 [INFO]:[Thread-10] Count is 0; get a short beak message
2017-07-01 19:55:24,439 [INFO]:[Thread-10] Show the break screen
2017-07-01 19:55:24,439 [INFO]:[Thread-10] Close pre-break notification
2017-07-01 19:55:24,444 [INFO]:[MainThread] Show break screens in all displays
2017-07-01 19:55:24,444 [INFO]:[Thread-11] Lock the keyboard
2017-07-01 19:55:26,341 [INFO]:[MainThread] User skipped the break
2017-07-01 19:55:26,341 [INFO]:[MainThread] User skipped the break
2017-07-01 19:55:26,342 [INFO]:[MainThread] Close the break screen(s)
2017-07-01 19:55:26,342 [INFO]:[Thread-11] Unlock the keyboard
2017-07-01 19:55:26,448 [INFO]:[Thread-12] Update next break information
2017-07-01 19:55:26,451 [INFO]:[Thread-12] Pre-break waiting for 2 minutes
2017-07-01 19:57:26,452 [INFO]:[Thread-12] Pre-break waiting is over
2017-07-01 19:57:26,452 [INFO]:[Thread-12] Ready to show the break
2017-07-01 19:57:26,452 [INFO]:[MainThread] Searching for full-screen application
2017-07-01 19:57:26,459 [INFO]:[Thread-13] Show pre-break notification
2017-07-01 19:57:26,539 [INFO]:[Thread-13] Wait for 10 seconds which is the time to prepare
2017-07-01 19:57:30,828 [INFO]:[MainThread] Show Settings dialog
2017-07-01 19:57:36,345 [INFO]:[MainThread] Saving settings to safeeyes.json
2017-07-01 19:57:36,346 [INFO]:[MainThread] Stop the core
2017-07-01 19:57:36,351 [INFO]:[MainThread] Initialize SafeEyesCore with modified settings
2017-07-01 19:57:36,352 [INFO]:[MainThread] Initialize the core
2017-07-01 19:57:36,352 [INFO]:[MainThread] Initialize the break screen
2017-07-01 19:57:37,354 [INFO]:[Thread-14] Scheduling next break
2017-07-01 19:57:37,358 [INFO]:[Thread-16] Update next break information
2017-07-01 19:57:37,360 [INFO]:[Thread-16] Pre-break waiting for 15 minutes
/*
* Safe Eyes is a utility to remind you to take break frequently
* to protect your eyes from eye strain.
* Copyright (C) 2016 Gobinath
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
.window_main {
background: black;
opacity: 0.9;
}
.btn_skip {
color: white;
border-radius: 20px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 25px;
padding-right: 25px;
border-color: white;
background: transparent;
border-width: 2px;
border-image: none;
}
.btn_skip:hover {
background: white;
color: black;
}
.lbl_message {
font-size: 16pt;
color: white;
font-weight: bold;
}
.lbl_count {
font-size: 10pt;
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment