Questions tagged [focus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 views

how to prevent input focus for a single window in gnome-shell window manager?

I need a single window to be on top and never gain focus when any other window is closed. In this case it is a gnome-terminal window w/o decorations, where I am running nethogs, it has a single ...
0
votes
1answer
42 views

How to make “Focus follow mouse” for Dolphin File Explorer?

I use Dolphin file explorer, within which I frequently switch back and forth to the terminal panel. So I was wondering how to make "Focus follow mouse" within Dolphin, so that I don't need to click ...
2
votes
0answers
295 views

Setup notify-send click action

Given some simple notify-send command inside a bash script such as notify-send "test" How can I make a determinate window gain focus when the user clicks that notification? I thought playing around ...
3
votes
2answers
630 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
312 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 ...
1
vote
1answer
156 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
2k 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
124 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 ...
2
votes
2answers
1k 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
549 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
154 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
168 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
43 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 ...
7
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
188 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 ...
1
vote
1answer
756 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 local ...
3
votes
0answers
633 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
463 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
285 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
1k 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
106 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
2k 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
949 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
145 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
134 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 ...
8
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 ...
9
votes
2answers
3k 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
279 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
237 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 ...