Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [focus]

The tag has no usage guidance.

0
votes
0answers
36 views

Gnome-terminal's opened after first one is opened & minimised, open but don't come to focus

I am running Arch, tint2 & Openbox with all the latest updates. I have the following snippet in Openbox which is a keyboard shortcut; <keybind key="w-t"><action name="Execute"><...
1
vote
2answers
126 views

How do I detect whether my terminal has focus in the GUI from a shell script?

Problem/Goal description Ideally, I would like a good way of detecting from a shell script whether or not the window has focus. By a "good" way, I mean some way which requires minimal steps and ...
1
vote
0answers
129 views

Focus preservation in i3wm

tl;dr: How do I implement the no_focus directive in i3wm and how do I dynamically assign a program to a workspace based on the workspace where I key the binding to open the program (i.e., I press the ...
0
votes
1answer
92 views

Navigate to previously focused window in xmonad

Is there any module that supports this functionality? If not - does anyone know how to implement this?
1
vote
1answer
562 views

Xdotool action without focusing

Is there a way to automatically click at a specific place in specific window without getting the window focused?
1
vote
0answers
82 views

XFCE Focus/Event Handling

In XFCE I defined Ctrl+Shift+Space to open the system menu. After installing Intellij I noticed that it uses that shortcut in a useful way. However, if I press it the system menu pops up. This is ...
1
vote
2answers
755 views

How do I run a KWin script from the console (to set focus to a specific window in KDE)?

I need to set focus to VirtualBox in KDE, I've written a KWin script for the purpose but I cannot figure out how to run it from console. What I have tried: This KWin script works in the Desktop ...
2
votes
0answers
392 views

Set mouse focus on current screen's active window

I was using Synergy from Symless. It shares the mouse and keyboard between computers. So it is similar to having secondary or third screen attached to your computer. The Scenario is: having a laptop ...
0
votes
1answer
123 views

How to make new window get the focus when Emacs in full-screen mode in Xfce4?

I'm using the Xfce4 desktop environment on top of Linux Mint 18.1. When using Emacs in full-screen mode, I want to open a new application via the xfce whisker menu, but the new application is always ...
1
vote
2answers
140 views

Start Tor browser in Unity without grabbing focus

I want to start Tor browser in background mode, i.e. I want to open a browser window but I want my terminal to keep the focus. I tried some solutions but they did not work. For instance: nohup ...
2
votes
0answers
39 views

Is there a command that will tell me if there is no screen activity?

Summary: Is there a command which will tell me if there is any screen activity currently taking place on my Debian system? Full Details: Towards the end of every boot, I run the Kate text editor ...
5
votes
0answers
1k views

How do you keep a window from stealing focus in GNOME Shell?

I've got multiple workspaces and two monitors in my GNOME Shell, and I'd like to find a way to exclude a window on my secondary monitor from ever stealing focus. Ideally, it'd be nice to exclude ...
1
vote
1answer
146 views

Eclipse quick switch windows does not have focus, does not work without mouse move

Using Eclipse Neon on Linux Mint with Xfce and "focus follows mouse" enabled, I try to use "quick switch windows" or "next editor" (CTRL+E or CTRL+F6) in the default bindings. In both cases, weird ...
0
votes
1answer
483 views

How to make x2go’s windows get focus on click?

The problem I use x2go and both client and server side have i3 as wm. So, the problem is the conflict between each key bindings. When I press Super+w on the distant system’s window it affect the ...
2
votes
0answers
470 views

Nemo file manager - change focus from the sidebar to the main view (automatically)

Edit: GitHub issue report I find it hard to change focus (either by keyboard, or automatically) from the sidebar to the contents view in Nemo 2.8.7 on Ubuntu 16.04. Nautilus does not have this ...
3
votes
0answers
1k views

Preventing other GUI applications from stealing focus?

How can I prevent other applications from stealing focus from the active window? I have found solutions for other window managers, but nothing for "Metacity (Marco)" (the window manager of the MATE ...
2
votes
0answers
372 views

Can I scroll background window without giving it focus in i3wm

I have disabled accidental touchpad click to activate background windows. However, when I move two fingers or my palm along the touchpad, this generates wheel events and they activate whichever window ...
2
votes
0answers
257 views

Focus stealing under Xfce in Matlab (Java programs?)

I'm using Matlab R2015a under Debian Linux. I recently switched to Xfce 4.12 as my desktop environment, and since then I am experiencing weird focus behavior: When I try to interact with the ...
2
votes
0answers
841 views

How to detect whether a window is in focus?

I'm not experienced in scripting but I've made this script: #!/usr/bin/env bash # hint: use "xdotool getmouselocation" to get values if xdotool getwindowfocus getwindowname | grep -Eq " - ...
3
votes
1answer
1k views

Xorg/Twm window has focus only when mouse is over

I have Xorg with Twm and xterm installed on Arch linux, and when I start the X server, I can type in xterm only when the mouse pointer is over its window. I have been searching options to Xorg and Twm ...
2
votes
0answers
103 views

How to update focus when toggling tags in Awesome WM?

How to reproduce: Install awesome, firefox and xterm. Start Awesome WM with my current configuration. There should now be an XTerm window in the first tag ("shell") and a Firefox window in the second ...
5
votes
1answer
1k views

Set focus to newly open window

I use Archlinux 3.17.2-1 with gnome-shell 3.14.1.5-1 I use keyboard shortcut to open various applications, for instance Ctrl+Alt+G opens gnome-terminal and Ctrl+Alt+T opens xfce4-terminal When ...
4
votes
0answers
1k views

Why am I randomly loosing focus from the active window in KDE?

Some months ago, I noticed that at random times the krunner pop-up (KDE run-command utility) appeared and stile focus from the active window. While krunner has stopped popping-up, I still loose focus ...
3
votes
1answer
761 views

Switching automatically between 2 windows on Linux

Hi I need to switch focus between two windows periodically and automatically (with software or w/e). Can this be achieved on linux?
2
votes
1answer
133 views

XFCE focus snaps back to under cursor

Not sure how to explain this. In many apps but not all, When there's a drop-down and the mouse pointer is inside it, I cannot navigate the list using keyboard. The focus in the list keeps snapping ...
2
votes
0answers
126 views

Keyboard-bound applications in Openbox

Following the template of another stack user I've bound a keyboard shortcut to toggle an application between hidden and fullscreen. The only problem is, no matter what application I apply it to, I ...
4
votes
2answers
2k views

WM-independent way to focus/raise URGENT window

I would like to have a keyboard shortcut to "go to" (focus + raise) window with URGENT flag set which looks like URGENT: it appears on the taskbar (Gnome + Metacity) even if it is on desktop other ...
8
votes
2answers
2k views

Is there any way to prevent focus being grabbed by another application?

I am getting annoyed by windows under X opening and taking focus away from the current window which has focus. This is particularly annoying when you are typing a password into a password dialog and ...
3
votes
1answer
268 views

How to autofocus already joined channels in irssi with /join?

I've got a bunch of windows (>80) in irssi. Quite often I quickly want to switch the active window to #channelX, without knowing which window number it has. Cycling through all of them is useless too ...
4
votes
2answers
222 views

Can you tell a window to spawn behind others?

I have a script that recompiles and relaunches a software project I am building in linux. However, I don't usually want to see my program's window immediately after it has launched, as I want to keep ...