Convert hyprland config to lua

This commit is contained in:
Sem
2026-05-21 00:08:15 +02:00
parent 6dfd4eac43
commit 5be218807c
26 changed files with 1133 additions and 12 deletions

47
hypr/window-rules.lua Normal file
View File

@@ -0,0 +1,47 @@
--#############################
--## WINDOWS AND WORKSPACES ###
--#############################
-- See https://wiki.hypr.land/Configuring/Window-Rules/ for more
-- See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
-- Example windowrules that are useful
hl.window_rule({
name = "suppress-maximize-events",
match = {
class = ".*",
},
-- Ignore maximize requests from all apps. You'll probably like this.
suppress_event = "maximize",
})
hl.window_rule({
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
-- Fix some dragging issues with XWayland
-- TODO: manual review — unmapped window rule action: "no_focus true"
})
-- Hyprland-run windowrule
hl.window_rule({
name = "move-hyprland-run",
match = {
class = "hyprland-run",
},
move = "20 monitor_h-120",
float = true,
})
hl.config({
debug = {
disable_logs = false,
},
})