Forcing Click-to-focus for TWM using WMCTRL....

view story

http://www.linuxquestions.org – Hello, I have been working a bit with TWM, and I must say that the biggest issue with using TWM is the need for click to focus, and not following the mouse. If you mouse is somewhere, no positioned where it should, then, click to focus will be your friend. A possibility is for instance to map the button button 2 (middle click) and to "remember" the name of the :ACTIVE: window using wmctrl. wmctrl is everywhere. xdotool not. Notice. So the trick would be to start from .xinitrc a bash script that would regularly check the set active ("the one that you click on with button (HowTos)