1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

xresources: load .Xresources in xsession.initExtra

This commit is contained in:
Naïm Favier 2021-06-10 11:56:41 +02:00 committed by Robert Helgesson
parent 9b39fd7eb4
commit 1e8d0beae4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -23,6 +23,8 @@ let
toString v;
in "${n}: ${formatValue v}";
xrdbMerge = "${pkgs.xorg.xrdb}/bin/xrdb -merge ~/.Xresources";
in {
meta.maintainers = [ maintainers.rycee ];
@ -84,9 +86,11 @@ in {
(mapAttrsToList formatLine cfg.properties)) + "\n";
onChange = ''
if [[ -v DISPLAY ]] ; then
$DRY_RUN_CMD ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.Xresources
$DRY_RUN_CMD ${xrdbMerge}
fi
'';
};
xsession.initExtra = xrdbMerge;
};
}