How do I automatically send SIGSTOP to workspace apps when switching away from a workspace?
I read somewhere in i3bar documentation or code or whatnot that it automatically sends SIGSTOP to i3status when in hidden mode. I think that's wonderful and would like to have the same thing for some background Wine apps that hammer the CPU when I don't need them to (hello Picasa 3).
So when I switch away from workspace 4, SIGSTOP should be sent to x+1 processes. When I switch back to workspace 4, SIGCONT is sent sent to x+1 processes.
Any suggestions?
I know that endre and Merovius from #i3 have scripts to do this for firefox.