diff options
| author | krolyxon <me@krolyxon.com> | 2026-08-25 21:30:58 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-08-25 21:30:58 +0530 |
| commit | 8aad227481a77ff5c8edce5c4655a1cfd3da27b1 (patch) | |
| tree | 5d7e11d07b2f424a7d68c8ca40020de973d8106f /.config/hypr/source | |
| parent | a090c360f18acb4e2dac46a9d53e146c87e8ab38 (diff) | |
hyprland: separate window rules to a lua file, also globalize pywal variable
Diffstat (limited to '.config/hypr/source')
| -rw-r--r-- | .config/hypr/source/appearance.lua | 2 | ||||
| -rw-r--r-- | .config/hypr/source/window_rules.lua | 38 |
2 files changed, 38 insertions, 2 deletions
diff --git a/.config/hypr/source/appearance.lua b/.config/hypr/source/appearance.lua index fc57878..c37ee44 100644 --- a/.config/hypr/source/appearance.lua +++ b/.config/hypr/source/appearance.lua @@ -1,5 +1,3 @@ -local wal = dofile(os.getenv("HOME") .. "/.cache/wal/hyprland-colors.lua") - hl.config({ -------------------------------------------------- -- General diff --git a/.config/hypr/source/window_rules.lua b/.config/hypr/source/window_rules.lua new file mode 100644 index 0000000..e82a3dc --- /dev/null +++ b/.config/hypr/source/window_rules.lua @@ -0,0 +1,38 @@ +-------------------------------------------------- +-- 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, +}) |
