Tag Info

Hot answers tagged

6

Some Window Managers have a lot of customizability to do stuff like this, but a lot more recent ones including metacity and compiz have lost this kind of customization. I used to use fvwm to do stuff like that. A simpler WM independent approach would be to try and reassign focus back to the right window. Look at the xdotool ...


4

FWIW, with xterm, click on the left mouse button while holding the Ctrl key to bring a menu where you can select secure keyboard. which uses XGrabKeyboard to get exclusive usage of the keyboard. You can also bind it to a key such as with: xterm -xrm 'XTerm.VT100.translations: #override Shift <KeyPress> F2: secure()' For Shift-F2. Though you'd ...


4

You can use the script windows_switcher from web::irssi::scripts Download the perl file and put it in ~/.irssi/scripts/autorun/. This is the short help contained in the file itself: # Usage: # * Add the statusbar item: # /STATUSBAR window add window_switcher # * Type /ws followed by a window number or part of a window or channel name. # * When the ...


4

Most modern dekstops are EMWH compliant. You can use wmctrl to control those and the windows on them, e.g.: wmctrl -a <WIN> to activate a window by switching to its desktop and raising it (<WIN> can be various things, by default a string match on the window title, see the wmctrl man page).


3

What you see is the normal way of twm to handle the mouse focus. The method is called focus follows mouse. Since 1989, twm was the default window manager of the X Window System. That means that it is a reference implementation, like other default components of X. Most reference implementations of other X components had incremental changes since that ...


2

Somehow it occurred to me that this might be caused by unclutter utility I had recently installed. Turns out that is the culprit. Once I knew it, I was able to find that the issue has been reported already, for example here: http://askubuntu.com/questions/3022/weird-mouse-problem. Also, I found an alternative called hhpc: https://github.com/Aktau/hhpc. ...


2

You're not saying which window manager you're using under gnome. Most common ones are metacity, compiz (and gnome-shell in new versions of gnome) though you can use any you like (though some integrate better with gnome than others). For openbox, change your configuration file (something like ~/.config/openbox/rc.xml which you can copy from ...


2

An alternative is to have the program connect to a different X server. You can either run a separate instance of X on a different virtual console. Switch with e.g. Ctrl-alt-F8. run Xnest to have an X server acting as a client to the main Xserver Either way, your testing script should set DISPLAY to redirect the program to the other X server (it will ...


1

I managed to solve this by using a wmctrl call at the end of my .zshrc file wmctrl -i -a $(wmctrl -l | grep Terminal | tail -n 1 | cut -d ' ' -f1) This forces the focus to the last openned windows with the name terminal (I guess the grep Terminal could be removed)



Only top voted, non community-wiki answers of a minimum length are eligible