feat(home): Stop picom blurring Zen Browser

This commit is contained in:
punkfairie 2025-01-03 21:12:00 -08:00
parent c71ea24abe
commit a3d78e5233
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -3,14 +3,12 @@
config, config,
pkgs, pkgs,
... ...
}: }: let
let
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.services.picom; cfg = config.marleyos.services.picom;
hasXorg = config.xsession.enable; hasXorg = config.xsession.enable;
in in {
{
options.marleyos.services.picom.enable = mkEnableOption "picom"; options.marleyos.services.picom.enable = mkEnableOption "picom";
config = mkIf (cfg.enable && hasXorg) { config = mkIf (cfg.enable && hasXorg) {
@ -20,7 +18,8 @@ in
}; };
# The module config options are a nightmare. # The module config options are a nightmare.
xdg.configFile."picom/picom.conf".text = # conf xdg.configFile."picom/picom.conf".text =
# conf
'' ''
# Shadows - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Shadows - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
shadow = true; shadow = true;
@ -48,6 +47,7 @@ in
focus-exclude = [ "class_g = 'Cairo-clock'" ]; focus-exclude = [ "class_g = 'Cairo-clock'" ];
opacity-rule = [ opacity-rule = [
"100:class_g = 'firefox'", "100:class_g = 'firefox'",
"100:class_g = 'zen-alpha'",
"60:class_g = 'dolphin'", "60:class_g = 'dolphin'",
"50:class_g = 'cava'" "50:class_g = 'cava'"
]; ];