refactor(nixos): Only load exwm-randr on adho

Last attempt to at least work around
https://github.com/ch11ng/exwm/issues/425 on one of my machines before
reverting to an old EXWM version.

If the randr module is responsible for this issue it will probably
still occur on the laptop and I'll eventually downgrade, but it may be
a clue for debugging it at some point in the future.
This commit is contained in:
Vincent Ambo 2018-06-03 18:17:51 +02:00
parent 2e637433c1
commit ac527952ce

View file

@ -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)