windows_and_workspaces.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. local suppressMaximizeRule = hl.window_rule({
  2. -- Ignore maximize requests from all apps. You'll probably like this.
  3. name = "suppress-maximize-events",
  4. match = { class = ".*" },
  5. suppress_event = "maximize",
  6. })
  7. -- suppressMaximizeRule:set_enabled(false)
  8. hl.window_rule({
  9. -- Fix some dragging issues with XWayland
  10. name = "fix-xwayland-drags",
  11. match = {
  12. class = "^$",
  13. title = "^$",
  14. xwayland = true,
  15. float = true,
  16. fullscreen = false,
  17. pin = false,
  18. },
  19. no_focus = true,
  20. })
  21. -- Layer rules also return a handle.
  22. -- local overlayLayerRule = hl.layer_rule({
  23. -- name = "no-anim-overlay",
  24. -- match = { namespace = "^my-overlay$" },
  25. -- no_anim = true,
  26. -- })
  27. -- overlayLayerRule:set_enabled(false)
  28. -- Hyprland-run windowrule
  29. -- hl.window_rule({
  30. -- name = "move-hyprland-run",
  31. -- match = { class = "hyprland-run" },
  32. --
  33. -- move = "20 monitor_h-120",
  34. -- float = true,
  35. -- })
  36. hl.window_rule({
  37. match = { class = "discord" },
  38. workspace = "11"
  39. })
  40. hl.window_rule({
  41. match = { class = "Spotify" },
  42. workspace = "12"
  43. })
  44. hl.window_rule({
  45. match = { class = "feishin" },
  46. workspace = "12"
  47. })