Files
hypr-conf/windowrules.conf

76 lines
1.6 KiB
Plaintext

# -----------------------------------------------------
# Window rules
# -----------------------------------------------------
# idleinhibit
# windowrule = match:class = ([window]), idleinhibit = fullscreen # Available modes: none, always, focus, fullscreen
#xwayland related rules
# when moving objects in resolve a large border is produced
# This rule prevents that and serves as a template for any problematic xwayland apps
# windowrule = noblur, class:^(\bresolve\b)$, xwayland:1
# This is a general rule for xwayland apps but can have other consequences
# for one user it impacted EMACs so it's disabled by default
# 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
}