Questions tagged [focus]

35 questions
10
votes
2 answers

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 than current and starts to blink (thanks to @slm for…
roomcays
  • 311
  • 2
  • 8
10
votes
2 answers

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 another application steals focus, so some of your…
Mark Booth
  • 1,011
  • 3
  • 14
  • 30
8
votes
1 answer

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 these windows from Alt+Tab as well. A really good…
Daniel Quinn
  • 614
  • 1
  • 5
  • 12
7
votes
1 answer

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 with the -a switch would do something, but I can't…
Waldir Leoncio
  • 311
  • 3
  • 11
6
votes
3 answers

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 preferably does not require sifting through each open…
Alexandria P.
  • 149
  • 2
  • 10
6
votes
1 answer

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 pressing Ctrl+Alt+g, the focus is set to the newly…
Amxx
  • 335
  • 3
  • 12
5
votes
2 answers

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 Shell Scripting Console How to open the Desktop Shell…
JKAbrams
  • 223
  • 2
  • 9
4
votes
0 answers

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 randomly. As I write this, I am losing focus from…
Symb932
  • 365
  • 1
  • 12
4
votes
2 answers

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 my keyboard focus on my vim window. Normally, my…
Cory Klein
  • 18,391
  • 26
  • 81
  • 93
3
votes
1 answer

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 problem. I want to be able to navigate through folders…
LogicStuff
  • 133
  • 7
3
votes
1 answer

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 desktop manager). I don't want to have to specify…
Eleno
  • 1,849
  • 4
  • 27
  • 39
3
votes
0 answers

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 " - LibreOffice Calc$" then xdotool mousemove --sync 218…
DK Bose
  • 917
  • 7
  • 21
3
votes
1 answer

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 of course. I'm not sure where to find the answer,…
minu
  • 31
  • 1
3
votes
1 answer

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 which can have something related with focus when…
user2551229
  • 185
  • 7
3
votes
1 answer

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?
Robert
  • 31
  • 2
1
2 3