about summary refs log tree commit diff
path: root/users/tazjin/emacs/config
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/emacs/config')
-rw-r--r--users/tazjin/emacs/config/desktop.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el
index 1900299b2ae3..e411da5a529a 100644
--- a/users/tazjin/emacs/config/desktop.el
+++ b/users/tazjin/emacs/config/desktop.el
@@ -230,6 +230,11 @@
   (shell-command "xrandr --output HDMI1 --right-of eDP1 --auto --primary")
   (exwm-randr-refresh))
 
+(defun randr-vauxhall-layout-remarkable ()
+  "Make the reMarkable the primary screen."
+  (interactive)
+  (shell-command "xrandr --output VIRTUAL1 --primary"))
+
 ;; Layouts for frog (desktop)
 
 (defun randr-frog-layout-right-only ()
@@ -252,7 +257,8 @@
   ("vauxhall"
    (exwm-input-set-key (kbd "s-m s") #'randr-vauxhall-layout-single)
    (exwm-input-set-key (kbd "s-m a") #'randr-vauxhall-layout-all)
-   (exwm-input-set-key (kbd "s-m w") #'randr-vauxhall-layout-wide-only))
+   (exwm-input-set-key (kbd "s-m w") #'randr-vauxhall-layout-wide-only)
+   (exwm-input-set-key (kbd "s-m r") #'randr-vauxhall-layout-remarkable))
 
   ("frog"
    (exwm-input-set-key (kbd "s-m b") #'randr-frog-layout-both)