Tero Paloheimo
e995446cfc
Fix some typos
2023-12-30 20:01:40 +02:00
AdamPS
903d407faf
Improvements to "interpret idle as break" #551
2023-11-30 18:04:44 +00:00
AdamPS
cbfc0cc133
Local function names should match #550
2023-11-30 14:57:37 +00:00
AdamPS
edb5b70b53
Improvements to health statistics #549
2023-11-29 14:00:29 +00:00
AdamPS
9d30def057
Display next long break #374
2023-11-29 14:00:29 +00:00
Onur Alp Akin
684d16265a
Reverse-DNS scheme for icons & Broken initialize logic fix & Add appstream ( #519 )
...
* Add appstream
* rename platform files reverse-dns format
* rename debian install file reverse-dns format
* rename usages reverse-dns format
* Respect XDG_CONFIG while initializing safeeyes
Instead of using custom variable to define target; Continue respecting XDG specs
https://github.com/slgobinath/SafeEyes/issues/432#issuecomment-883829334
* move appstream under platform
* add flathub badge
* update flathub badge & flatpak installation
2023-05-10 05:45:38 -04:00
Gobinath
9e64e65fce
Add sub-menu to take any, short or long breaks
2023-01-23 15:28:57 +00:00
meztihn
bcecc016dd
DND: Fix window class matching for names with spaces
2023-01-05 19:02:54 -05:00
Ankit Raj Pandey
ed60dd1970
Directly track running swayidle process ( #470 )
...
We actually don't need to use a separate variable to track the status of
the spawned swayidle process, since we can poll the status directly from
the process object. This increases robustness against e.g. a killed
swayidle process, which would cause safeeyes to be permanently disabled
until a restart.
2021-11-16 08:52:12 -05:00
Ankit Raj Pandey
ad041c7855
Add smartpause support for swaywm ( #464 )
...
If the current desktop environment is sway, the smartpause plugin will
spawn a swayidle process that outputs the current time on idle and
resume. Using that info, we can determine:
1. Whether the system is currently idle (idle timestamp > active timestamp)
2. How many seconds the system has been idle (current timestamp - idle timestamp)
Since swayidle uses the KDE idle protocol, it might be possible to
extend this to Wayland KDE as well.
2021-09-29 07:53:08 -04:00
mullerdavid
c784000e69
Fix broken tray icon on Debian 11 ( #461 )
...
* Tryicon plugin Ayatana library fallback
* Updating debian dependencies
* Updated readme, adding Ayataha Appindicator
2021-09-21 08:20:23 -04:00
Cyrinux
6e07de7c22
donotdisturb: Add wayland fullscreen detection ( #427 )
...
* [wayland] detect fullscreen with wlrctl
Will work with the next sway release or current master branch.
* Add dependency_checker
2021-04-18 15:47:53 -04:00
freddii
7d582c2720
Fix typos in comments ( #419 )
2021-01-26 22:55:59 -05:00
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