I have 7 differents workspaces and each of them have a different purpose.
But everything runs in the background... For exemple the workspace 5 with my browser is using CPU even when I'm on workspace 2. Which I find ridiculous. (I'm using a simple terminal and my cpu is at ~20% for some stupid JS running on another workspace.)
I'm using a script now to switch between workspaces, and it triggers a series of
kill -SIGSTOP $(pidof PROGRAM) and
-SIGCONT only the programs of the current workspace.
My CPU usage has decreased significantly, but are there any drawbacks of doing this?
Can a long term STOPPED process cause any trouble somehow?
Is there a more conventional way of doing the same thing?