As per title
I have noticed compton and libre office do not play nice. See below for details:
The above being the case, i am trying to write a little bash script loop to turn Compton off whenever Libreoffice is open. See below:
while :
do sleep 5 if [ "$(pidof oosplash)" ] then killall compton else compton fi done
It works to switch off Compton if I open Lbreoffice and then switches Compton back on if I close Libreoffice, but then it gets stuck and doesn't do anything from that point. In other words, if I reopen libreoffice, it no longer switches Compton off. I have run it in a terminal to see if it gives a message, but it displays nothing. It just hangs there never going back round the loop.
I've tried replacing "if [ "$(pidof oosplash)" ]" with " if pgrep "oosplash" > /dev/null"
It is just the same...works once, then gets stuck.
Anybody any ideas what I am doing wrong?