From 3f921ef4f84a28b5014f7d2dbc0f105cf18e4326 Mon Sep 17 00:00:00 2001 From: MikeVeerman Date: Fri, 22 Aug 2025 08:50:10 +0200 Subject: [PATCH] Fix JetBrains IDEs flickering and focus issues in Hyprland (#888) * Fix JetBrains IDEs flickering and focus issues in Hyprland Add window rules to prevent tooltip and tab dragging flickering issues in JetBrains IDEs when running under Hyprland compositor. * Fix JetBrains IDEs flickering and focus issues in Hyprland Add window rules to prevent tooltip and tab dragging flickering issues in JetBrains IDEs when running under Hyprland compositor. Uses the new windowrule syntax (Hyprland v0.48.0+) instead of deprecated windowrulev2. # Conflicts: # default/hypr/apps/jetbrains.conf * Fix JetBrains floating popup size issue in Hyprland * Style --------- Co-authored-by: Mike Veerman Co-authored-by: David Heinemeier Hansson --- default/hypr/apps.conf | 3 ++- default/hypr/apps/jetbrains.conf | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 default/hypr/apps/jetbrains.conf diff --git a/default/hypr/apps.conf b/default/hypr/apps.conf index 8e87bfdd..85ddb0c2 100644 --- a/default/hypr/apps.conf +++ b/default/hypr/apps.conf @@ -7,4 +7,5 @@ source = ~/.local/share/omarchy/default/hypr/apps/steam.conf source = ~/.local/share/omarchy/default/hypr/apps/system.conf source = ~/.local/share/omarchy/default/hypr/apps/walker.conf source = ~/.local/share/omarchy/default/hypr/apps/1password.conf -source = ~/.local/share/omarchy/default/hypr/apps/zoom.conf +source = ~/.local/share/omarchy/default/hypr/apps/jetbrains.conf +source = ~/.local/share/omarchy/default/hypr/apps/zoom.conf \ No newline at end of file diff --git a/default/hypr/apps/jetbrains.conf b/default/hypr/apps/jetbrains.conf new file mode 100644 index 00000000..d13bb16c --- /dev/null +++ b/default/hypr/apps/jetbrains.conf @@ -0,0 +1,10 @@ +# Fixing popup size issue +windowrule = size 50% 50%, class:(.*jetbrains.*)$, title:^$,floating:1 + +# Fix tooltips (always have a title of `win.`) +windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^(win.*)$ +windowrule = nofocus, class:^(.*jetbrains.*)$, title:^(win.*)$ + +# Fix tab dragging (always have a single space character as their title) +windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^\\s$ +windowrule = nofocus, class:^(.*jetbrains.*)$, title:^\\s$