summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/settings/xresources.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/settings/xresources.nix b/user/settings/xresources.nix
index 6d290349..5ab0bb49 100644
--- a/user/settings/xresources.nix
+++ b/user/settings/xresources.nix
@@ -5,7 +5,9 @@
     recursive = true;
     source = ../xresources;
     onChange = ''
-      ${pkgs.xorg.xrdb}/bin/xrdb -merge .xresources/main
+      if [[ -n "$DISPLAY" ]]; then
+        ${pkgs.xorg.xrdb}/bin/xrdb -merge .xresources/main
+      fi
     '';
   };
 }