summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-09-11 23:45:28 -0400
committerAmin Bandali <bandali@gnu.org>2019-09-11 23:48:17 -0400
commit256cef154c94b0319290ed9445ab2f11e45603e3 (patch)
tree42f6a5d428e21aaf33462f7e0468c0b6d2c0a87b
parente7125caf1ae01df9ae58693d71ca29ed75a94eda (diff)
downloadconfigs-256cef154c94b0319290ed9445ab2f11e45603e3.tar.gz
configs-256cef154c94b0319290ed9445ab2f11e45603e3.tar.xz
configs-256cef154c94b0319290ed9445ab2f11e45603e3.zip
emacs: exwm: add some rudimentary exwm-randr settings
-rw-r--r--.emacs.d/init.el15
1 files changed, 14 insertions, 1 deletions
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