Silhouette Idle Checker


I am trying to find a way to have idle checker for silhouette, meaning Silhouette should close if it is idle or inactive for certain amount of time.

Is there any pre-existing method for this or any idea on how it can be achieved ?

This could probably be done with scripting using the PySide2 Qt integration.
It would require registering a QTimer with the QApplication for when you want it to self-quit, then register an event filter on the QApplication that looks for mouse down events. Restart the timer every time there is a mouse down event, which would signify “activity”.