From 8aad227481a77ff5c8edce5c4655a1cfd3da27b1 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Tue, 25 Aug 2026 21:30:58 +0530 Subject: hyprland: separate window rules to a lua file, also globalize pywal variable --- .config/hypr/hyprland.lua | 45 +++------------------------------------------ 1 file changed, 3 insertions(+), 42 deletions(-) (limited to '.config/hypr/hyprland.lua') diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua index 689e6ac..b240a40 100644 --- a/.config/hypr/hyprland.lua +++ b/.config/hypr/hyprland.lua @@ -9,8 +9,8 @@ mainMod = "SUPER" HOME = os.getenv("HOME") --- Theme (pywal) -dofile(HOME .. "/.cache/wal/hyprland-colors.lua") +-- Theme (pywal16) +wal = dofile(HOME .. "/.cache/wal/hyprland-colors.lua") -- ----------------------------------------------------- -- Autostart @@ -45,43 +45,4 @@ require("source.permissions") require("source.appearance") require("source.input") require("source.keybinds") - - --------------------------------------------------- --- Window rules --------------------------------------------------- -hl.window_rule({ - name = "suppress-maximize-events", - - match = { - class = ".*", - }, - - suppress_event = "maximize", -}) - -hl.window_rule({ - name = "fix-xwayland-drags", - - match = { - class = "^$", - title = "^$", - xwayland = true, - float = true, - fullscreen = false, - pin = false, - }, - - no_focus = true, -}) - -hl.window_rule({ - name = "move-hyprland-run", - - match = { - class = "hyprland-run", - }, - - move = "20 monitor_h-120", - float = true, -}) +require("source.window_rules") -- cgit v1.2.3