Run script when idle
#1
I was wondering if it is somehow possible to run a simple bash script some how when xbmc is idle / screen saver activates? This is on xbmcubuntu.

I came across this and was wondering is some variation of it could be used?

http://ubuntuforums.org/showthread.php?t=1029704
Reply
#2
you could write a small python script that runs your bash script on idle / screensaver.

python scripts can use the xbmc monitor class to listen for onScreensaverActivated() calls.

getting the system idle time can be done through xbmc.getInfoLabel('system.idletime')
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
Run script when idle0