You are not logged in.

#1 2010-12-08 01:43:39

pirateofms
Member
Registered: 2010-05-10
Posts: 23

Checking for composite manager

It may be a dumb question, but is there any way to check if compositing is actually working in bash or python?

Ex: I'd like to start terminator and tint2 after I'm sure that cairo-compmgr has finished loading, without using sleep.

Is it possible to just check if it's icon is in the tray?  If so, how?  Or is there a variable that gets set for it?

Offline

#2 2010-12-08 10:08:51

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Checking for composite manager

You could check if the process is running using psgrep.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-12-08 16:24:30

pirateofms
Member
Registered: 2010-05-10
Posts: 23

Re: Checking for composite manager

It looks like psgrep essentially does 'ps aux | grep' for me.  Not bad (I actually just made it into a bash function, handy.)

The only problem is I would get back results as soon as the program is launched, regardless if it's actually started compositing yet.  I'd like to make sure I'm only launching them AFTER it's actually started compositing.  Possible?

Offline

Board footer

Powered by FluxBB