Command to determine whether a fullscreen application is running?

Posted by George Edison on Ask Ubuntu See other posts from Ask Ubuntu or by George Edison
Published on 2011-03-13T07:09:40Z Indexed on 2011/03/13 8:17 UTC
Read the original article Hit count: 247

Filed under:
|
|

I have a small shell script that plays a little jingle and displays a notification whenever I get a new email.

The problem is that this shell script can get invoked anytime - including when I'm watching a DVD / video in fullscreen mode with the sound turned up quite a bit - which is quite annoying.

I'd like to enhance this script with the ability to detect whether an application is in fullscreen mode. I know this must be somehow possible because notifications don't display under those circumstances.

What command can I use?

© Ask Ubuntu or respective owner

Related posts about bash

Related posts about fullscreen