about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-02-19T13·30+0200
committertazjin <mail@tazj.in>2021-02-19T13·37+0000
commite174bad35ba1a5a7de3a8aec3420ca210b78f7e5 (patch)
tree85172cf3ed1b79776dfeedb7f93322ee5414f754 /users/tazjin
parentee9da33576316d9fea5d9b787ccdf2376843e12d (diff)
feat(tazjin/emacs): Add layout for reMarkable as primary screen r/2220
Change-Id: I4c10e36250aa112d2dd0cebf4ed41e0b6fd8182d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2539
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-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)