1
0
mirror of https://github.com/slgobinath/SafeEyes.git synced 2024-12-12 22:26:06 +01:00
Commit Graph

43 Commits

Author SHA1 Message Date
Gobinath
6ae4c95315 Refactor the stats reset interval label 2021-01-10 21:43:36 -05:00
Gobinath
a69debf8ff Fix next break being postponed forever 2021-01-10 21:32:46 -05:00
Gobinath
f1fbbbbc88 Add debug logs to Health Stats plugin 2020-12-20 10:06:34 -05:00
Gobinath
25f4aa626f Add cron expression to reset health stats 2020-12-20 10:06:34 -05:00
AdamPS
d3bcb9de73
Smart Pause count as long break #373 - correction to original fix (#388)
Co-authored-by: AdamPS <AdamPS@2650563.no-reply.drupal.org>
2020-11-01 20:21:22 -05:00
Gobinath
ebe6f1aafb Fix idle start time calculation 2020-10-29 08:49:40 -04:00
Gobinath
2736321048
Reset breaks after being idle longer than a long break duration (#386) 2020-10-25 08:44:29 -04:00
Chris Coutinho
448e11fe7d
Fix UnboundLocalError in smartpause plugin (#378)
* Add UnboundLocalError check in smartpause plugin

Running this package for the first time locally, I see the following error in my gnome logs:

```
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: Exception in thread WorkThread:
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: Traceback (most recent call last):
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     self.run()
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib64/python3.8/threading.py", line 870, in run
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     self._target(*self._args, **self._kwargs)
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:   File "/usr/lib/python3.8/site-packages/safeeyes/plugins/smartpause/plugin.py", line 163, in __start_idle_monitor
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]:     if next_break is not None:
Sep 28 10:31:53 x1carbon safeeyes.desktop[13687]: UnboundLocalError: local variable next_break referenced before assignment
```

This is a quick fix to solve that error

* Set next_break to None before while loop
2020-10-03 07:58:31 -04:00
Gobinath
0953abe855 Fix the error NoneType added with timedelta 2020-07-08 18:29:36 -04:00
Dmitry Svobodiannikov
9a92edd107
Fix menu locked only during pre break notification issue #362 2020-04-12 08:39:24 -04:00
Gobinath
5c554fffc1 Refactor modules and classes 2020-03-18 08:33:11 -04:00
Gobinath
098f320aa1 Optimize smart pause in wayland feature 2019-07-13 22:08:15 -04:00
Filip Kilibarda
d4e732a7f0 Added idle time support for gnome/wayland (#332)
* Added idle time support for gnome/wayland

* Removed is_gnome, using Utility.DESKTOP_ENVIRONMENT instead
2019-07-13 19:08:41 -04:00
Gobinath
35cfa50c95 Animate tray icon during pre-break period 2019-03-13 20:28:30 -04:00
Gobinath
09ded85ec8 Compare screen time with last screen time 2019-03-12 19:55:03 -04:00
Gobinath
8ef8a5293c Enable reset stats feature for all stats 2019-03-02 15:56:27 -05:00
Gobinath
da06d15851 Reword health stat reset command 2019-03-02 15:42:39 -05:00
Gobinath
66a29c602c Add interval to reset screen time option 2019-03-01 20:28:44 -05:00
Gobinath
04a10b17ff Fix bug in removing idle_period from context 2019-02-28 21:15:56 -05:00
Gobinath
b08fd0e7a8 Add screen time to health stats 2019-02-24 11:53:20 -05:00
Gobinath
40aacdf642 Allow disabling Safe Eyes option to tray icon. Add #264 2019-02-23 19:14:26 -05:00
Gobinath
e3697f4c0e Quit Safe Eyes during the break Fix #269 2019-02-23 09:57:53 -05:00
Gobinath
79d96a7932 Add option to enable or disable post break sound 2019-02-10 10:42:29 -05:00
Gobinath
025bb1f4b4 Wait until the break ends to lock the screen 2019-01-21 16:52:21 -05:00
Gobinath
bfe4720383 Customize tray action icons 2019-01-16 18:15:31 -05:00
Gobinath
5c54f501f6 Add lock screen button to the break screen 2019-01-12 16:45:31 -05:00
Gobinath
b6c8b504af
Feature Media Control plugin and toolbar support (#295)
* Add toolbar actions to the break screen

* Add media control plugin
2019-01-12 16:12:50 -05:00
Gobinath
107670f9c0
Override break intervals (#294)
* Add break queue

* Add remember last break option

* Add option to override interval

* Increase duration limit for promodo mode
2019-01-11 20:42:51 -05:00
Gobinath
7a22adf91d Add postpone break until system becomes idle 2018-10-31 09:11:25 +05:30
Gobinath
c5a2570712 Fix bug in dnd while on battery 2018-06-24 07:52:34 -04:00
Gobinath
8188c1824b Add info log to dnd plugin 2018-06-23 07:38:13 -04:00
Gobinath
8156f31886 Add pre-break audible alert 2018-06-22 18:22:14 -04:00
Gobinath
68ea1c4677 Add DND while on battery to DND plugin 2018-06-22 15:11:09 -04:00
Dmitriy Bogdanov
195b08381a DND plugin: prevent notifications in fullscreen (#255)
Check for fullscreen windows and cancel the break in the on_pre_break hook,
thus preventing the "Ready for a break" notification.
2018-05-15 06:47:25 -04:00
Gobinath
f3f83e88b6 Improve skip break description 2018-03-19 20:42:32 -04:00
Gobinath
020934aa0f Fix bug in smart pause and release new version 2018-02-09 10:09:08 -05:00
Gobinath
866bea6b30 Add status command line arg 2018-01-28 20:16:02 -05:00
Gobinath
57418866be Fix hard coded time in notification 2017-11-18 18:15:13 -05:00
Jalakas
7c0c8c29f3 update estonian language translation, fix some remaining flake8 style fixes (#214)
* flake8 fixes

* translation: update Estonian translation
2017-11-11 10:53:24 -05:00
Gobinath
70759a2115 Add option to interpret system idle as break 2017-10-17 14:50:57 -04:00
Gobinath
8149f331a5 Change the Smart Pause unit to seconds 2017-10-14 09:30:11 -04:00
Gobinath
5aebb3da5d Fix error in upgrading plugins 2017-10-12 09:33:44 -04:00
Gobinath
5de6869309 Safeeyes 2.0.0 (#194) 2017-10-07 09:10:31 -04:00