Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
safeeyes (3.1.0) noble; urgency=medium

* Ensure compatibility with older Wayland

* Made xlib a mandatory dependency so that it does not break in x11.

-- Archisman Panigrahi <apandada1@gmail.com> Sun, 21 Sep 2025 15:28:01 +0000

safeeyes (3.0.1) noble; urgency=medium

* bugfix release
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "safeeyes"
version = "3.0.1"
version = "3.1.0"
description = "Protect your eyes from eye strain using this continuous breaks reminder."
license = {text = "GPL-3.0-or-later"}
keywords = ["linux utility health eye-strain safe-eyes"]
Expand Down Expand Up @@ -30,7 +30,7 @@ requires-python = ">=3.10"

[project.urls]
Homepage = "https://github.com/slgobinath/SafeEyes"
Downloads = "https://github.com/slgobinath/SafeEyes/archive/v3.0.1.tar.gz"
Downloads = "https://github.com/slgobinath/SafeEyes/archive/v3.1.0.tar.gz"

[project.scripts]
safeeyes = "safeeyes.__main__:main"
Expand Down
2 changes: 1 addition & 1 deletion safeeyes/glade/about_dialog.glade
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.</pr
<property name="valign">center</property>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="label">Safe Eyes 3.0.1</property>
<property name="label">Safe Eyes 3.1.0</property>
<property name="justify">center</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<url type="homepage">https://slgobinath.github.io/SafeEyes/</url>

<releases>
<release version="3.1.0" date="2025-09-21" />
<release version="3.0.1" date="2025-09-11" />
<release version="3.0.0" date="2025-08-24" />
<release version="3.0.0~b6" date="2025-08-24" />
Expand Down
23 changes: 19 additions & 4 deletions safeeyes/plugins/smartpause/ext_idle_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,25 @@

from pywayland.client import Display
from pywayland.protocol.wayland.wl_seat import WlSeat
from pywayland.protocol.ext_idle_notify_v1 import (
ExtIdleNotifierV1,
ExtIdleNotificationV1,
)


if typing.TYPE_CHECKING:
from pywayland.protocol.ext_idle_notify_v1 import (
ExtIdleNotifierV1,
ExtIdleNotificationV1,
)

try:
from pywayland.protocol.ext_idle_notify_v1 import (
ExtIdleNotifierV1,
ExtIdleNotificationV1,
)
except Exception as e:
logging.warning("The ext_idle_notify_v1 feature is not available. Exception: %s", e)
logging.warning("This is likely due to an older version of Wayland.")
EXT_IDLE_NOTIFY_IMPORT_ERROR = True
else:
EXT_IDLE_NOTIFY_IMPORT_ERROR = False

from .interface import IdleMonitorInterface
from safeeyes import utility
Expand Down
12 changes: 11 additions & 1 deletion safeeyes/plugins/smartpause/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,18 @@ def on_start() -> None:
elif use_swayidle:
idle_monitor = IdleMonitorSwayidle()
elif use_ext_idle_notify:
from .ext_idle_notify import IdleMonitorExtIdleNotify
from .ext_idle_notify import (
IdleMonitorExtIdleNotify,
EXT_IDLE_NOTIFY_IMPORT_ERROR,
)

if EXT_IDLE_NOTIFY_IMPORT_ERROR:
logging.warning(
"SmartPause plugin disabled:"
" ext_idle_notify_v1 not available on this system."
)
idle_monitor_unsupported = True
return
idle_monitor = IdleMonitorExtIdleNotify()
else:
idle_monitor = IdleMonitorX11()
Expand Down