On Ubuntu Focal Fossa 20.04, for most of the apps, for example by searching for VeraCrypt and pressing Enter, Ubuntu displays a notification at the top of my screen which says something like "VeraCrypt is ready". I have to click on this notification so that the app I wanted to open comes to the foreground. Is there a way to change this default behavior?
Asked
Active
Viewed 1.5k times
50
3 Answers
24
Windows is Ready - Notification Remover <-- only removes notification, does not focus the open window
Focus my window <-- incompatible
Here, this works best on Ubuntu 22.04
https://extensions.gnome.org/extension/5410/grand-theft-focus/
Yusuf
- 349
-
Grand Theft Focus worked for me. I didn't test the others because of this answer. I used the NoAnnoyance extension initially but it didn't seem to work on 22.04. – Rafael Eyng Jan 01 '23 at 22:34
-
This is more maintained than "Focus my window" ("Focus my window" does not work is 43). – Ahmad Ismail Aug 12 '23 at 18:36
-
1
-
– Eric Dec 11 '23 at 04:02sudo apt-get install chrome-gnome-shell. 2. open https://extensions.gnome.org/extension/5410/grand-theft-focus/ , and install the chrome extension if not yet. 3. clickinstallon the site, then it should work. (it worked on my ubuntu 22.04.3)
16
There are some Gnome extensions that do exactly that:
pLumo
- 28,011
- 2
- 65
- 97
-
Focus my windowextension is not available by the link:404 - Page not Found We couldn't find the page you were looking for, /extension/1005/focus-my-window/– Anton Samokat Apr 28 '24 at 16:21 -
1
0
Another solution (tested on Ubuntu 24.04) which I don't see mentioned here is changing a setting using dconf-editor.
Install it with: sudo apt install dconf-editor
Open dconf editor and search for /org/gnome/desktop/wm/preferences/focus-new-windows. Uncheck use default value and set it to 'strict' instead of the default 'smart'.
Vik
- 71
-
"strict" does the opposite, from the description: “smart” applies the user’s normal focus mode, and “strict” results in new windows not being given focus automatically. There is currently no option here to allow apps to take focus. – Razzi Abuissa Jul 11 '25 at 17:29
Always on Top– Anton Samokat Apr 28 '24 at 16:20