On 2019-04-02, Georgios <gpdsbe+deb...@mailbox.org> wrote: > I'm watching movies through netflix so I do not have any ideas how to > write a script that will do that thing. I guess the script should detect > if an application is in full screen mode. >
Here's a GPL script not far from your desire (can't vouch for it, though). https://raw.githubusercontent.com/jamcnaughton/useful-linux-scripts/master/xscreensaver/xscreensaverstopper.sh You'd have to alter, of course, the if clause to toggle on xfce-power-manager presentation mode (xfconf-query ...) rather than deactivating xscreensaver ('xscreensaver-command -deactivate'), and I guess add an 'else' to toggle it off when the active window isn't fullscreen. It seems possible to grep the output of 'ps aux' for the cdm decryption module, which might be another way to go in Netflix stream detection.