Update opacity

This commit is contained in:
2026-09-29 15:46:15 +01:00
parent a73c80531b
commit 015118d74a
2 changed files with 19 additions and 18 deletions
+17 -16
View File
@@ -1,31 +1,32 @@
-- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
-- Tag all windows for default opacity (apps can override with -default-opacity tag)
hl.window_rule({
name = "default-opacity",
tag = "+default-opacity",
match = { class = ".*" },
})
hl.window_rule {
name = 'default-opacity',
tag = '+default-opacity',
match = { class = '.*' },
}
-- Fix some dragging issues with XWayland
hl.window_rule({
name = "xwayland-dragging",
hl.window_rule {
name = 'xwayland-dragging',
match = {
class = "^$",
title = "^$",
class = '^$',
title = '^$',
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
}
-- App-specific tweaks (may remove default-opacity tag)
require("apps")
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",
})
hl.window_rule {
name = 'apply-opacity',
match = { tag = 'default-opacity' },
opacity = '0.97 0.8',
}