From 503388b4d64289c9f424baa38704bfc869c7ec13 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 20 Jul 2026 21:15:47 -0700 Subject: [PATCH] Retune opacity for Hyprland 0.56's corrected alpha premultiplication 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 --- default/hypr/apps/terminals.lua | 2 +- default/hypr/windows.lua | 2 +- themes/kanagawa/hyprland.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/default/hypr/apps/terminals.lua b/default/hypr/apps/terminals.lua index e43139b3..e87ad35c 100644 --- a/default/hypr/apps/terminals.lua +++ b/default/hypr/apps/terminals.lua @@ -1,3 +1,3 @@ -- Define terminal tag to style them uniformly. o.window("(Alacritty|kitty|com.mitchellh.ghostty|foot|wezterm)", { tag = "+terminal" }) -o.window({ tag = "terminal" }, { tag = "-default-opacity", opacity = "0.985 0.95" }) +o.window({ tag = "terminal" }, { tag = "-default-opacity", opacity = "0.985 0.96" }) diff --git a/default/hypr/windows.lua b/default/hypr/windows.lua index 03982a28..c08487dd 100644 --- a/default/hypr/windows.lua +++ b/default/hypr/windows.lua @@ -22,4 +22,4 @@ o.window( 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" }) +o.window({ tag = "default-opacity" }, { opacity = "0.985 0.96" }) diff --git a/themes/kanagawa/hyprland.lua b/themes/kanagawa/hyprland.lua index 3ff083c1..d0f190fc 100644 --- a/themes/kanagawa/hyprland.lua +++ b/themes/kanagawa/hyprland.lua @@ -15,4 +15,4 @@ hl.config({ }) -- Kanagawa backdrop is too strong for default opacity. -o.window({ tag = "terminal" }, { opacity = "0.99 0.975" }) +o.window({ tag = "terminal" }, { opacity = "0.99 0.985" })