From a0de1f59449f34f966470b7045b02f6c9fd2d325 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Sun, 15 May 2022 20:26:31 +0300 Subject: [PATCH] - seems only Gnome and KDE Wayland have docs about idle detection --- app/idle_tracking.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/idle_tracking.cpp b/app/idle_tracking.cpp index 91a3c8b..ed8766c 100644 --- a/app/idle_tracking.cpp +++ b/app/idle_tracking.cpp @@ -96,6 +96,8 @@ int get_idle_time_wayland() // https://github.com/NilsBrause/waylandpp // Wayland protocol: idle-inhibit // Interact with Wayland: look on waylandpp project + // For Gnome only: dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime + // For KDE: use kde idle protocol https://wayland.app/protocols/kde-idle return 0; }