Skip to content

Commit bea5791

Browse files
NicolasDorierdhh
andauthored
Fix: Jetbrains popup dialog would not get focus automatically (#3326)
* Fix: Jetbrains popup dialog would not get focus automatically The config shipped with omarchy misbehaves with popups. Opening a popup would not shift the focus automatically to it, requiring manual click on it to start typing into it. You can reproduce with by trying to open any popup dialog (for example CTRL+T on Rider, or CTRL+SHIFT+F) This config with `-Dawt.toolkit.name=WLToolkit` in the custom VM options fixes all the issues I have with jetbrains. I am also making a dedicated workspace which float all windows just for jetbrains. * Use existing formatting conventions * More tweaks --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
1 parent 03cbbd2 commit bea5791

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

default/hypr/apps/jetbrains.conf

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
# JetBrains windows default size
2-
windowrule = size 50% 50%, class:(.*jetbrains.*)$, title:^$
1+
# Fix splash screen showing in weird places and prevent annoying focus takeovers
2+
windowrule = tag +jetbrains-splash, class:^(jetbrains-.*)$, title:^(splash)$, floating:1
3+
windowrule = center, tag:jetbrains-splash
4+
windowrule = nofocus, tag:jetbrains-splash
5+
windowrule = noborder, tag:jetbrains-splash
36

4-
# Fix tab dragging (tab titles are just one space)
5-
windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^\\s$
7+
# Center popups/find windows
8+
windowrule = tag +jetbrains, class:^(jetbrains-.*), title:^()$, floating:1
9+
windowrule = center, tag:jetbrains
610

7-
# Allow dialogs (like "Send usage statistics") to be focusable and clickable
8-
windowrule = unset,nofocus,class:^(.*jetbrains.*)$,title:^$
9-
windowrule = unset,noinitialfocus,class:^(.*jetbrains.*)$,title:^$
11+
# Enabling this makes it possible to provide input in popup dialogs (search window, new file, etc.)
12+
windowrule = stayfocused, tag:jetbrains
13+
windowrule = noborder, tag:jetbrains
14+
15+
# For some reason tag:jetbrains does not work for size rule
16+
windowrule = size >50% >50%, class:^(jetbrains-.*), title:^()$, floating:1
17+
18+
# Disable window flicker when autocomplete or tooltips appear
19+
windowrule = noinitialfocus, class:^(jetbrains-.*)$, title:^(win.*)$, floating:1

0 commit comments

Comments
 (0)