From daf3952b7bbfb38f40dcf648b22f9b048f4535c6 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 11 Mar 2026 12:14:34 +1100 Subject: [PATCH] fix: Update keybind syntax and add jetbrains window rules --- .config/hypr/keybinds.conf | 5 ++--- .config/hypr/windowrules.conf | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/.config/hypr/keybinds.conf b/.config/hypr/keybinds.conf index 8b4fed4..b6521ea 100644 --- a/.config/hypr/keybinds.conf +++ b/.config/hypr/keybinds.conf @@ -23,9 +23,8 @@ bind = $mainMod, V, exec, [float] kitty --class float-80 -e $clipboard # Layout -bind = $mainMod, J, togglesplit, # Split direction -bind = $mainMod, code:35, togglesplit, # Split direction -bind = $mainMod SHIFT, J,swapsplit # Swap master and secondary in dwindle +bind = $mainMod, J, layoutmsg, togglesplit # Split direction +bind = $mainMod, code:35, layoutmsg, togglesplit # Split direction # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf index 8b32f85..c12851c 100644 --- a/.config/hypr/windowrules.conf +++ b/.config/hypr/windowrules.conf @@ -241,4 +241,44 @@ windowrule { center = on border_size = 0 match:class = ^(Autodesk Fusion)$ +} + +# Intelij +# input.follow_mouse = 2 + +# find in files +# windowrulev2=noinitialfocus,class:jetbrains-toolbox, floating:1 +# windowrulev2=noinitialfocus, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1 +windowrule { + name = jb-find-in-files-floating + float = on + no_initial_focus = on + match:class = ^jetbrains-toolbox$ +} +windowrule { + name = jb-find-in-files-floating-2 + float = on + no_initial_focus = on + match:class = ^(jetbrains-)(.*)$ + match:title = ^$ + match:initial_title = ^$ +} + +# other dialogs +# windowrulev2=center, class:(jetbrains-)(.*), title:^$, initialTitle:^$, floating:1 +# windowrulev2=center, class:(jetbrains-)(.*), initialTitle:(.+), floating:1 + +windowrule { + name = jb-other-dialogs + float = on + center = on + match:class = ^(jetbrains-)(.*)$ + match:title = ^$ + match:initial_title = ^$ +} +windowrule { + name = jb-other-dialogs + float = on + center = on + match:class = ^(jetbrains-)(.*)$ } \ No newline at end of file