From e174bad35ba1a5a7de3a8aec3420ca210b78f7e5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 19 Feb 2021 15:30:54 +0200 Subject: feat(tazjin/emacs): Add layout for reMarkable as primary screen Change-Id: I4c10e36250aa112d2dd0cebf4ed41e0b6fd8182d Reviewed-on: https://cl.tvl.fyi/c/depot/+/2539 Reviewed-by: tazjin Tested-by: BuildkiteCI --- users/tazjin/emacs/config/desktop.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'users/tazjin/emacs') 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) -- cgit 1.4.1