From 256cef154c94b0319290ed9445ab2f11e45603e3 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Wed, 11 Sep 2019 23:45:28 -0400 Subject: [PATCH 1/1] emacs: exwm: add some rudimentary exwm-randr settings --- .emacs.d/init.el | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 48971fd..47ff590 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -754,7 +754,20 @@ around if needed." :demand :after exwm :config - (exwm-randr-enable)) + (exwm-randr-enable) + :custom + (exwm-randr-workspace-monitor-plist '(1 "VGA-1")) + :hook + (exwm-randr-screen-change . (lambda () + (let ((xrandr + (string-join + '("xrandr" + "--output VGA-1" + "--same-as LVDS-1" + "--auto") + " "))) + (start-process-shell-command + "xrandr" nil xrandr))))) (use-feature exwm-systemtray :demand -- 2.20.1