Lua
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
-- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
-- Hyprland 0.53+ syntax
|
||||
hl.window_rule({
|
||||
name = "suppress-maximise-events",
|
||||
match = { class = ".*" },
|
||||
supress_event = "maximize",
|
||||
})
|
||||
|
||||
-- Tag all windows for default opacity (apps can override with -default-opacity tag)
|
||||
hl.window_rule({
|
||||
name = "default-opacity",
|
||||
tag = "+default-opacity",
|
||||
match = { class = ".*" },
|
||||
})
|
||||
|
||||
-- Fix some dragging issues with XWayland
|
||||
hl.window_rule({
|
||||
name = "xwayland-dragging",
|
||||
match = {
|
||||
class = "^$",
|
||||
title = "^$",
|
||||
xwayland = true,
|
||||
float = true,
|
||||
fullscreen = false,
|
||||
pin = false,
|
||||
},
|
||||
no_focus = true,
|
||||
})
|
||||
|
||||
-- App-specific tweaks (may remove default-opacity tag)
|
||||
require("apps")
|
||||
|
||||
-- Apply default opacity after apps have had a chance to opt out
|
||||
hl.window_rule({
|
||||
name = "apply-opacity",
|
||||
match = { tag = "default-opacity" },
|
||||
opacity = "0.97, 0.9",
|
||||
})
|
||||
Reference in New Issue
Block a user