Improve JetBrains window handling
This commit is contained in:
@@ -88,8 +88,8 @@ env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 5
|
||||
gaps_out = 5
|
||||
gaps_in = 7
|
||||
gaps_out = 7
|
||||
|
||||
border_size = 2
|
||||
|
||||
|
||||
@@ -14,3 +14,62 @@
|
||||
# It's here as a reference or for quick triage of xwayland ap
|
||||
#windowrule = noblur, xwayland:1
|
||||
|
||||
|
||||
# Jetbrains rules
|
||||
windowrule {
|
||||
name = float-jb-windows
|
||||
match:tag = +jb
|
||||
|
||||
float = on
|
||||
}
|
||||
windowrule {
|
||||
name = focus-jb-windows
|
||||
match:tag = jb
|
||||
|
||||
stay_focused = on
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = jb-no-initialfocus
|
||||
match:tag = jb
|
||||
|
||||
no_initial_focus = on
|
||||
}
|
||||
windowrule {
|
||||
name = jb-focus-on-activate
|
||||
match:class = ^jetbrains-(?!toolbox)
|
||||
|
||||
focus_on_activate = on
|
||||
}
|
||||
# Center popups except context menu
|
||||
windowrule {
|
||||
name = center-popups
|
||||
match:class = ^jetbrains-(?!toolbox)
|
||||
match:title = ^(?!win.*)
|
||||
|
||||
move = 30% 30%
|
||||
float = on
|
||||
}
|
||||
windowrule {
|
||||
name = float-context-menu
|
||||
match:class = ^jetbrains-(?!toolbox)
|
||||
match:title = ^(?!win.*)
|
||||
|
||||
float = on
|
||||
size = 40% 40%
|
||||
}
|
||||
# Fix tab dragging
|
||||
windowrule {
|
||||
name = tab-drag-no-initial-focus
|
||||
match:class = ^(.*jetbrains.*)$
|
||||
match:title = ^\\s$
|
||||
|
||||
no_initial_focus = on
|
||||
}
|
||||
windowrule {
|
||||
name = no-focus-tab-drag
|
||||
match:class = ^(.*jetbrains.*)$
|
||||
match:title = ^\\s$
|
||||
|
||||
no_focus = on
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user