Topic: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

Tint closes apps on right-click. Wonderful.
What about the middle click. When the system becomes sluggish, and you can barely reach the terminal, searching for PIDs to kill is a bit ineffective.

The middle (scroll) click is unused. It could suspend the app, the system would become available, and you could free up resources... or handle priorities.

or eventually you could just lower the priority of the process with each click ?

or... you could control-scroll over processes to increase/decrease priority ?

It would make sense IMHO. What do YOU think ?

Can someone help ?

What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

I believe the following would work in


# MOUSE ACTION ON TASK


mouse_middle = close


BTW this site is an excellent reference for tint2 info and examples...

Last edited by VastOne (2011-09-08 18:37:09)

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

I know I can close a task with one click. But what if I don't want to close/kill it ?

I followed your link and found that tint2 has a limited set of actions to respond with on clicks (like close, iconify, restore_maximize, aso), but I also read...

"If a mouse action is set to none and wm_menu = 1 is set, the mouse click is forwarded to the window manager "

Could we use this to somehow send a "suspend" to the app, without hacking tint2 ? Or is my only option a feature request to the tint2 team ?

Edit: grammar

Last edited by crunchworksyeay (2011-09-09 14:25:34)

What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

I would contact the developers.. Any question I have had there they have been responsive.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

Would anyone like tint2 to be able to "pause" an app, or descrese priority with a click ?

Does anyone think it's a worthwhile idea ?

What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

crunchworksyeay wrote:

Would anyone like tint2 to be able to "pause" an app, or descrese priority with a click ?

Does anyone think it's a worthwhile idea ?

Are you talking about a specific app? 

I think control of an app should come from the app itself and not tint2.  Like it does with tray apps that has app control built in, like a music player.. even in that situation, the control is by the app and not a tint2 function

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

If you can get the app to foreground, you can indeed control it. Is it just my system that hangs from time to time ?

What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

I've learned that nice and renice alter the priority process.
So, I guess all I'm left with is preventively setting the niceness. But given the fact that PID-s vary every session, I'd like an easy way to set things up... something like this, but the first pipe isn't working:

renice +10 < xprop | grep PID | cut -d \= -f 2
What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

You dont want to be dependent on X being available for a lifesaver!
Search something you can use in the console, such as:

[sudo] pkill -KILL <string identifying the process you want to kill>

or

sudo renice +10 $(pgrep <string identifying the process you want to kill>)

Before you do this, do:

pgrep <string identifying the process you want to kill>

and verify that is in fact the pid of the process you want killed or reniced.
hth

If you poke the bear it is going to come after you.

Re: Suggestion/Lifesaver-empowering tint2 by using the scroll/middle click

xaos52 wrote:
sudo renice +10 $(pgrep <string identifying the process you want to kill>)

Thanks a million !

Edit: it works like a charm. You just made my computer usable... stress free, just like #! ought to be...

Last edited by crunchworksyeay (2011-09-14 10:23:49)

What is truth? said jesting Pilate; and would not stay for an answer. - Francis Bacon.