;;; myExwm.el -*- lexical-binding: t; -*- (require 'exwm-randr) (setq exwm-randr-workspace-monitor-plist '(0 "DisplayPort-2" 1 "HDMI-A-0")) (add-hook 'exwm-randr-screen-change-hook (lambda () (start-process-shell-command "xrandr" nil "xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal"))) (exwm-randr-enable) (require 'exwm) (require 'exwm-config) (exwm-enable) (require 'exwm-systemtray) (exwm-systemtray-enable) (map! :desc "Change workspaces" :n "s-SPC" #'exwm-workspace-switch) (map! :desc "Dmenu" :"s-" #'dmenu) (exwm-workspace-add)