Make Steam transparent too

This commit is contained in:
Username404-59 2026-06-29 20:49:00 +02:00
parent 07d89fdbc9
commit f4071ec668
Signed by: Username404-59
GPG Key ID: F3A1878B14F5F0D7

View File

@ -305,7 +305,7 @@ in
size = [ "monitor_w - 5" "monitor_h - 5" ]; size = [ "monitor_w - 5" "monitor_h - 5" ];
} }
*/ */
# Chromakey with Catppuccin Mocha Base (0.1176, 0.1176, 0.1804) # Chromakey with Catppuccin Mocha Base (the hex values each divided by 255 -> 0.1176, 0.1176, 0.1804)
{ {
name = "transparency"; name = "transparency";
match = { class = "^(spotify|jetbrains-.*|io.github.ilya_zlobintsev.LACT|org.prismlauncher.PrismLauncher|org.kde.*|qt.*|.*qt.*|.*Qt.*)$"; }; match = { class = "^(spotify|jetbrains-.*|io.github.ilya_zlobintsev.LACT|org.prismlauncher.PrismLauncher|org.kde.*|qt.*|.*qt.*|.*Qt.*)$"; };
@ -321,6 +321,22 @@ in
}) })
''; '';
} }
# Chromakey for Steam; https://www.color-hex.com/color-palette/1050902
{
name = "steam-transparency";
match = { class = "steam"; };
"darkwindow:shade" = lib.generators.mkLuaInline ''
hl.plugin.darkwindow.build_window_rule({
shader = "chromakey",
args = {
bkg = { 0.1607, 0.1803, 0.2156 },
targetOpacity = 0.78,
similarity = 0.1185,
amount = 0.7
}
})
'';
}
]; ];
}; };
}; };