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
+2 -2
View File
@@ -61,13 +61,13 @@ hl.window_rule {
-- Only a subtle opacity change, but not for video sites -- Only a subtle opacity change, but not for video sites
hl.window_rule { hl.window_rule {
opacity = '1.0 0.97', opacity = '1.0 0.8',
match = { match = {
tag = 'chromium-based-browser', tag = 'chromium-based-browser',
}, },
} }
hl.window_rule { hl.window_rule {
opacity = '1.0 0.97', opacity = '1.0 0.8',
match = { match = {
tag = 'firefox-based-browser', tag = 'firefox-based-browser',
}, },
+17 -16
View File
@@ -1,31 +1,32 @@
-- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
-- Tag all windows for default opacity (apps can override with -default-opacity tag) -- Tag all windows for default opacity (apps can override with -default-opacity tag)
hl.window_rule({ hl.window_rule {
name = "default-opacity", name = 'default-opacity',
tag = "+default-opacity", tag = '+default-opacity',
match = { class = ".*" }, match = { class = '.*' },
}) }
-- Fix some dragging issues with XWayland -- Fix some dragging issues with XWayland
hl.window_rule({ hl.window_rule {
name = "xwayland-dragging", name = 'xwayland-dragging',
match = { match = {
class = "^$", class = '^$',
title = "^$", title = '^$',
xwayland = true, xwayland = true,
float = true, float = true,
fullscreen = false, fullscreen = false,
pin = false, pin = false,
}, },
no_focus = true, no_focus = true,
}) }
-- App-specific tweaks (may remove default-opacity tag) -- App-specific tweaks (may remove default-opacity tag)
require("apps") require 'apps'
-- Apply default opacity after apps have had a chance to opt out -- Apply default opacity after apps have had a chance to opt out
hl.window_rule({ hl.window_rule {
name = "apply-opacity", name = 'apply-opacity',
match = { tag = "default-opacity" }, match = { tag = 'default-opacity' },
opacity = "0.97 0.9", opacity = '0.97 0.8',
}) }