Linux – suspend Thunderbird when screensaver is active

If you have configured many Thunderbird’s mail filters and you don’t want them to be applied when you are away from your computer, maybe because (like me) you want to have all the messages in the standard Inbox when you are reading them on the smartphone, you could try to suspend Thunderbird when screensaver is active.


A simple script, and crontab, could be enough …

Create file /usr/local/bin/ e inside it paste the following code:

Save the file, make it executable and, using crontab, add it to the scheduled tasks.

I have added the following line to my crontab:

In this way the script checks every 2 minutes if the screensaver is active and suspend/resume Thunderbird when it has to.

Leave a comment