-- https://wiki.hypr.land/Configuring/Basics/Window-Rules/ -- launchers — float centred at cursor hl.window_rule({ name = "ulauncher-launcher", match = { class = "ulauncher" }, tag = "+launcher" }) hl.window_rule({ name = "vicinae-launcher", match = { class = "vicinae" }, tag = "+launcher" }) hl.window_rule({ name = "launcher", match = { tag = "launcher" }, pin = true, no_shadow = true, no_blur = true, border_size = 0, move = "(cursor_x-(window_w/2)) (cursor_y-(window_h/2))", }) hl.window_rule({ name = "vicinae-server", match = { class = "vicinae-server" }, pin = true, no_shadow = true, no_blur = true, border_size = 0, move = "(cursor_x-(window_w/2)) (cursor_y-(window_h/2))", }) -- firefox hl.window_rule({ name = "firefox", match = { class = "firefox" }, opaque = true, render_unfocused = true }) -- vesktop (Discord) hl.window_rule({ name = "vesktop", match = { class = "vesktop" }, render_unfocused = true, no_screen_share = true }) -- mixer tag — tag assignment hl.window_rule({ name = "nextcloud-mixer", match = { class = "com.nextcloud.desktopclient.nextcloud" }, tag = "+mixer" }) hl.window_rule({ name = "blueman-mixer", match = { class = "blueman-manager" }, tag = "+mixer" }) hl.window_rule({ name = "nm-mixer", match = { class = "nm-connection-editor" }, tag = "+mixer" }) -- mixer tag — behaviour hl.window_rule({ name = "mixer-float", match = { tag = "mixer" }, float = true, pin = true, move = "(monitor_w*0.7) (monitor_h*0.05)", size = "(monitor_w*0.2) (monitor_h*0.3)", }) -- centred large hl.window_rule({ name = "large-centered-L", match = { tag = "centered-L" }, float = true, move = "(monitor_w*0.1) (monitor_h*0.1)", size = "(monitor_w*0.8) (monitor_h*0.8)", }) -- centred medium hl.window_rule({ name = "large-centered", match = { tag = "centered" }, float = true, move = "(monitor_w*0.2) (monitor_h*0.2)", size = "(monitor_w*0.6) (monitor_h*0.6)", }) -- centred small hl.window_rule({ name = "centered-small", match = { tag = "centered-S" }, float = true, move = "(monitor_w*0.4) (monitor_h*0.4)", size = "(monitor_w*0.2) (monitor_h*0.2)", }) -- spotify floating hl.window_rule({ name = "spotify-float", match = { class = "spotify", float = true }, no_blur = true, opacity = "0.5 0.05", }) -- smart gaps hl.workspace_rule({ workspace = "w[tv1]s[false]", gaps_out = 0, gaps_in = 0 }) hl.workspace_rule({ workspace = "f[1]s[false]", gaps_out = 0, gaps_in = 0 }) hl.window_rule({ name = "smart-gaps-tiling-tv1", match = { float = false, workspace = "w[tv1]s[false]" }, border_size = 1, rounding = 3 }) hl.window_rule({ name = "smart-gaps-tiling-f1", match = { float = false, workspace = "f[1]s[false]" }, border_size = 0, rounding = 0 })