about summary refs log tree commit diff
path: root/init/nixos.el
diff options
context:
space:
mode:
Diffstat (limited to 'init/nixos.el')
-rw-r--r--init/nixos.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/init/nixos.el b/init/nixos.el
index 4facf40ae741..a75695d0c8e3 100644
--- a/init/nixos.el
+++ b/init/nixos.el
@@ -43,7 +43,6 @@
       (message "Running on NixOS, configuring ExWM.")
       (require 'exwm)
       (require 'exwm-config)
-      (require 'exwm-randr)
 
       (fringe-mode 3)
 
@@ -92,9 +91,11 @@
       ;; Show time in the mode line
       (display-time-mode)
 
-      ;; Another attempt at xrandr configuration
-      (setq exwm-randr-workspace-output-plist (generate-randr-config))
-      (exwm-randr-enable)
+      ;; Configure xrandr when running on laptop
+      (when (equal (shell-command-to-string "hostname") "adho\n")
+        (require 'exwm-randr)
+        (setq exwm-randr-workspace-output-plist (generate-randr-config))
+        (exwm-randr-enable))
 
       ;; Let buffers move seamlessly between workspaces
       (setq exwm-workspace-show-all-buffers t)