You are not logged in.
This python script will run in the background and suspends specified applications when they are not on the active workspace.
I had this idea because both Firefox and Chromium annoyed me on my notebook, demanding CPU time just by being there and doing nothing. The script works pretty well for me, and hopefully it can extend the battery life a bit.
python2 and python2-gobject is required. Stopping the script shouldn't be an issue, you can kill it with CTRL-C or SIGTERM or whatever.
I would have put it on github, but I'm a shitty programmer and don't know anything about git.
Offline
I think it's a nice idea for notebooks. But why python2?
After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin
Offline
I think it's a nice idea for notebooks. But why python2?
Because I couldn't get wnck3 with gobject-introspection for python3 working. I tried for several hours and just gave up.
Offline
Hmm what exactly caused problems? In fact your script has no specific python2 code and works for me just fine with python3
I guess you know this api already.
After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin
Offline