Skip to content

Commit

Permalink
feat(hyprland): add window rules for jetbrains apps
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed May 26, 2024
1 parent 41f46e3 commit 29a04e5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/desktop/wm/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,23 @@ in
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];

windowrulev2 = [
# -- Fix odd behaviors in IntelliJ IDEs --
#! Fix focus issues when dialogs are opened or closed
"windowdance,class:^(jetbrains-.*)$,floating:1"
#! Fix splash screen showing in weird places and prevent annoying focus takeovers
"center,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
"nofocus,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"
"noborder,class:^(jetbrains-.*)$,title:^(splash)$,floating:1"

#! Center popups/find windows
"center,class:^(jetbrains-.*)$,title:^( )$,floating:1"
"stayfocused,class:^(jetbrains-.*)$,title:^( )$,floating:1"
"noborder,class:^(jetbrains-.*)$,title:^( )$,floating:1"
#! Disable window flicker when autocomplete or tooltips appear
"nofocus,class:^(jetbrains-.*)$,title:^(win.*)$,floating:1"
];
};
};
};
Expand Down

0 comments on commit 29a04e5

Please sign in to comment.