ext_idle_notifier_v1¤
wayland.ext_idle_notifier_v1 ¤
Idle notification manager
This interface allows clients to monitor user idle status.
After binding to this global, clients can create ext_idle_notification_v1 objects to get notified when the user is idle for a given amount of time.
Methods:
-
destroy
–Destroy the manager
-
get_idle_notification
–Create a notification object
-
get_input_idle_notification
–Create a notification object
destroy ¤
destroy() -> None
Destroy the manager
Destroy the manager object. All objects created via this interface remain valid.
get_idle_notification ¤
get_idle_notification(timeout: int, seat: wl_seat) -> ext_idle_notification_v1
Create a notification object
Create a new idle notification object.
The notification object has a minimum timeout duration and is tied to a seat. The client will be notified if the seat is inactive for at least the provided timeout. See ext_idle_notification_v1 for more details.
A zero timeout is valid and means the client wants to be notified as soon as possible when the seat is inactive.
Parameters:
Returns:
-
ext_idle_notification_v1
(ext_idle_notification_v1
) –The created object
get_input_idle_notification ¤
get_input_idle_notification(timeout: int, seat: wl_seat) -> ext_idle_notification_v1
Create a notification object
Create a new idle notification object to track input from the user, such as keyboard and mouse movement. Because this object is meant to track user input alone, it ignores idle inhibitors.
The notification object has a minimum timeout duration and is tied to a seat. The client will be notified if the seat is inactive for at least the provided timeout. See ext_idle_notification_v1 for more details.
A zero timeout is valid and means the client wants to be notified as soon as possible when the seat is inactive.
Parameters:
Returns:
-
ext_idle_notification_v1
(ext_idle_notification_v1
) –The created object