diff options
Diffstat (limited to '.config/hypr/windows.lua')
| -rw-r--r-- | .config/hypr/windows.lua | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.config/hypr/windows.lua b/.config/hypr/windows.lua new file mode 100644 index 0000000..4eb2a98 --- /dev/null +++ b/.config/hypr/windows.lua @@ -0,0 +1,43 @@ +-- https://wiki.hypr.land/Configuring/Basics/Window-Rules/ +-- https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/ + +local suppressMaximizeRule = hl.window_rule({ + -- Ignore maximize requests from all apps. You'll probably like this. + name = "suppress-maximize-events", + match = { class = ".*" }, + + suppress_event = "maximize", +}) +-- suppressMaximizeRule:set_enabled(false) + +hl.window_rule({ + -- Fix some dragging issues with XWayland + name = "fix-xwayland-drags", + match = { + class = "^$", + title = "^$", + xwayland = true, + float = true, + fullscreen = false, + pin = false, + }, + + no_focus = true, +}) + +-- Layer rules also return a handle. +-- local overlayLayerRule = hl.layer_rule({ +-- name = "no-anim-overlay", +-- match = { namespace = "^my-overlay$" }, +-- no_anim = true, +-- }) +-- overlayLayerRule:set_enabled(false) + +-- Hyprland-run windowrule +hl.window_rule({ + name = "move-hyprland-run", + match = { class = "hyprland-run" }, + + move = "20 monitor_h-120", + float = true, +}) |
