1
0
mirror of https://github.com/slgobinath/SafeEyes.git synced 2024-12-24 23:50:46 +01:00
Commit Graph

77 Commits

Author SHA1 Message Date
deltragon
4cc899df40 translations: use named placeholders when there are multiple 2024-08-04 19:55:57 +02:00
deltragon
762305c5c1 translations: use named placeholder for plural translation
Fixes TypeError when numbers are optional in eg. singular forms.

See https://github.com/python/cpython/issues/52606
2024-08-04 19:05:52 +02:00
deltragon
df3ae00e92
correct/add missing translations 2024-07-17 18:55:12 +02:00
deltragon
2c7f193302
add ability to show link in plugin dependencies, use for trayicon 2024-07-17 18:55:12 +02:00
deltragon
8b1607294c
plugins: add required_plugins setting with popup, use for trayicon 2024-07-17 18:55:11 +02:00
deltragon
f9274d77da
trayicon: check for dependency on dbus service 2024-07-17 18:55:11 +02:00
deltragon
56d61882aa
switch path to ayatana 2024-07-17 18:55:11 +02:00
deltragon
1967d32d11
dbusmenu: implement all methods 2024-07-17 18:55:11 +02:00
deltragon
ea2c747978
trayicon: migrate from libappindicator to statusnotifier 2024-07-17 18:55:09 +02:00
deltragon
8553693ddf
switch from dbus-python to gio 2024-07-17 18:54:30 +02:00
undefiened
fabdc4a6db added copyright 2024-07-10 19:43:55 +02:00
undefiened
ff6c395e4c merge master 2024-07-10 19:36:01 +02:00
Archisman Panigrahi
1159d6cf9d
Merge pull request #556 from terop/fix_typos
Fix some typos
2024-06-26 12:58:28 -04:00
deltragon
a156cea515
Merge pull request #571 from rhendric/rhendric/donotdisturb-gnome
donotdisturb: fix for GNOME
2024-06-26 15:54:45 +02:00
deltragon
bbcae910ed
Merge pull request #546 from antoninkriz/patch-1
Correctly detect GNOME in screensaver plugin and in utility.py
2024-06-26 15:49:32 +02:00
Ryan Hendrickson
2786f55c8a donotdisturb: fix for GNOME 2024-04-24 03:02:35 -04:00
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
Antonín Kříž
a33235b11b Correctly detect all possible GNOME sessions in screen saver plugin lock feature and in utility.py 2023-11-13 16:01:57 +01:00
undefiened
a54c16476e Removed copyright 2023-07-09 01:17:08 +02:00
undefiened
bc7ae63120 Added an icon 2023-07-09 00:59:20 +02:00
undefiened
3428759a85 Fixed comment 2023-05-28 21:07:55 +02:00
undefiened
bd51aed724 Added plugin for limiting the number of consecutive skips or postpones 2023-05-28 13:54:09 +02: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