From 728e54954483a0282db123e083e9058571e321e8 Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Mon, 26 Aug 2024 10:51:45 +0800 Subject: [PATCH] home-cursor, xresources: use `profileExtra` instead of `initExtra` `xsession.initExtra` is executed after systemd graphical-session.target, which means graphical applications started by graphical-session.target can get these x settings. --- modules/config/home-cursor.nix | 2 +- modules/xresources.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index cb9a2ab28..54b08e5ff 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -163,7 +163,7 @@ in { } (mkIf cfg.x11.enable { - xsession.initExtra = '' + xsession.profileExtra = '' ${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${ toString cfg.size } diff --git a/modules/xresources.nix b/modules/xresources.nix index e4ba0e47e..cb8dae238 100644 --- a/modules/xresources.nix +++ b/modules/xresources.nix @@ -99,6 +99,6 @@ in { ''; }; - xsession.initExtra = xrdbMerge; + xsession.profileExtra = xrdbMerge; }; }