parent
9407b42f97
commit
7cc36b7703
|
@ -69,10 +69,17 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.properties != null || cfg.extraConfig != "") {
|
config = mkIf (cfg.properties != null || cfg.extraConfig != "") {
|
||||||
home.file.".Xresources".text =
|
home.file.".Xresources" = {
|
||||||
concatStringsSep "\n" ([]
|
text =
|
||||||
++ (optional (cfg.extraConfig != "") cfg.extraConfig)
|
concatStringsSep "\n" ([]
|
||||||
++ (optionals (cfg.properties != null) (mapAttrsToList formatLine cfg.properties))
|
++ (optional (cfg.extraConfig != "") cfg.extraConfig)
|
||||||
) + "\n";
|
++ (optionals (cfg.properties != null) (mapAttrsToList formatLine cfg.properties))
|
||||||
|
) + "\n";
|
||||||
|
onChange = ''
|
||||||
|
if [[ -v DISPLAY ]] ; then
|
||||||
|
$DRY_RUN_CMD ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.Xresources
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue