Update opacity
This commit is contained in:
@@ -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
@@ -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',
|
||||||
})
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user