diff --git a/hyprland.lua b/hyprland.lua index 67e0879..063377c 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -23,6 +23,7 @@ hl.monitor({ }) + --------------------- ---- MY PROGRAMS ---- --------------------- @@ -363,3 +364,4 @@ hl.window_rule({ float = true, }) +require('windowrules') diff --git a/windowrules.lua b/windowrules.lua new file mode 100644 index 0000000..be34db5 --- /dev/null +++ b/windowrules.lua @@ -0,0 +1,27 @@ +-- JetBrains Rules start +hl.window_rule({ + name = "tab-drag-no-initial-focus", + match = { + class = "^jetbrains-(?!toolbox)", + title = "^(!win.*)", + }, + no_initial_focus = true, +}) + +hl.window_rule({ + name = "no-focus-tab-drag-jb", + match = { + class = "^(.*jetbrains.*)$", + title = "^\\s$", + }, + no_focus = true, +}) +-- JetBrains Rules end + +hl.window_rule({ + name = "Picture-in-Picture", + match = { + title = "Picture-in-Picture", + }, + float = true, +})