Hyprland 0.56 fixed premultiplication in the color-management shader (hyprwm/Hyprland#14403), so the same opacity values now render visibly more transparent than on 0.55. Raise each value to its perceptual equivalent (a^(1/2.2)) to restore the previous look. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
26 lines
667 B
Lua
26 lines
667 B
Lua
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
|
|
|
o.window(".*", { suppress_event = "maximize" })
|
|
|
|
-- Tag all windows for default opacity (apps can override with -default-opacity tag).
|
|
o.window(".*", { tag = "+default-opacity" })
|
|
|
|
-- Fix some dragging issues with XWayland.
|
|
o.window(
|
|
{
|
|
class = "^$",
|
|
title = "^$",
|
|
xwayland = true,
|
|
float = true,
|
|
fullscreen = false,
|
|
pin = false,
|
|
},
|
|
{ no_focus = true }
|
|
)
|
|
|
|
-- App-specific tweaks (may remove default-opacity tag).
|
|
require("default.hypr.apps")
|
|
|
|
-- Apply default opacity after apps have had a chance to opt out.
|
|
o.window({ tag = "default-opacity" }, { opacity = "0.985 0.95" })
|