about summary refs log tree commit diff
path: root/users/tazjin/emacs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-03-31T12·22+0200
committertazjin <tazjin@tvl.su>2022-03-31T13·24+0000
commitdd797f8d3e2eec7f7ecee28e8c592da438f2e6e2 (patch)
treeffb175e8041a658406d9141edb709cc0f5bbff98 /users/tazjin/emacs
parente70428e75b624f9aa467fbd563e016abac587a82 (diff)
feat(tazjin/emacs): Add randr layout with TV screen above laptop r/3925
Change-Id: I302f9d86d7325ce97c95fd61deb9ff722f9d0ce1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5426
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin/emacs')
-rw-r--r--users/tazjin/emacs/config/desktop.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el
index 2b50c4203933..39e431e9b3b7 100644
--- a/users/tazjin/emacs/config/desktop.el
+++ b/users/tazjin/emacs/config/desktop.el
@@ -320,6 +320,16 @@ in-progress."
   (shell-command "xrandr --output HDMI-A-0 --left-of eDP --auto")
   (exwm-randr-refresh))
 
+(defun randr-tverskoy-tv-above ()
+  "Split the workspace across two screens, assuming TV above."
+  (interactive)
+  (set-randr-config
+   '(("eDP" 1 2 3 4 5 6 7)
+     ("HDMI-A-0" 8 9 0)))
+
+  (shell-command "xrandr --output HDMI-A-0 --above eDP --mode 1920x1080")
+  (exwm-randr-refresh))
+
 ;; Layouts for frog (desktop)
 
 (defun randr-frog-layout-right-only ()