Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use devilspie to arrange the windows of monitoring tools (htop,ifop,iotop,nethogs, bmon) at the third workspace.

In case I need the details about some process activity, I switch to the third workspace and watch all I need immediately. It is very handful to me. But these tools consume resources of my week ATOM box which I want to be free when I don't use the third desktop.

That is why I'm looking for a way to stop (kill -STOP) these monitoring processes when I move from the third desktop and coninue them (kill -CONT) when I come back. I figure out there might be a kind of hooks in DE which trigger when desktops switch.

I use LXDE in Lucid. Any Ideas?

share|improve this question

closed as too localized by qbi, Seth, TheX, Uri Herrera, Eric Carvalho Mar 1 '13 at 0:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

I would suggest looking for a D-Bus signal that is emitted whenever you switch workspaces.

Try to run dbus-monitor to check which signals are emitted while you do that. See also this question about how to read the dbus-monitor output.

There are Python bindings for D-Bus which you can use to write a script that closes existing windows when this signal is emitted. You can kill a process using Python's os.kill function.

share|improve this answer
    
Thank you for that idea.I checked it out and found that no event is generated when workspace changed. Seems like LXDE does not support dbus. –  zuba Mar 30 '12 at 12:39
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.