about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-06-23T18·15+0200
committertazjin <mail@tazj.in>2021-07-14T17·03+0000
commit8e33ae4ad7b8ddc66d67fa79955644a8e0c9f265 (patch)
tree66576b618b42cc5696d8149f338ab26f5254f2fe
parent60dfa3a971401abf88728c47582dca61927dec88 (diff)
feat(tazjin/emacs): Add layout for external TV on tverskoy r/2689
Change-Id: I6ac9b7180b940ca3018d999500f035245a358079
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3246
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--users/tazjin/emacs/config/desktop.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/desktop.el b/users/tazjin/emacs/config/desktop.el
index 52dea2ca14a3..b152aeac0b87 100644
--- a/users/tazjin/emacs/config/desktop.el
+++ b/users/tazjin/emacs/config/desktop.el
@@ -229,12 +229,22 @@
   (interactive)
   (set-randr-config
    '(("eDP1" 8 9 0)
-     ("HDMI1" 1 2 4 5 6 7)))
+     ("HDMI1" 1 2 3 4 5 6 7)))
 
   (shell-command "xrandr --output DP2 --off")
   (shell-command "xrandr --output HDMI1 --right-of eDP1 --auto --primary")
   (exwm-randr-refresh))
 
+(defun randr-tverskoy-extend-tv ()
+  "Move the last workspace on the TV to the side."
+  (interactive)
+  (set-randr-config
+   '(("eDP" 1 2 3 4 5 6 7 8 9)
+     ("HDMI-A-0" 0)))
+
+  (shell-command "xrandr --output HDMI-A-0 --above eDP --auto")
+  (exwm-randr-refresh))
+
 (defun randr-vauxhall-layout-remarkable ()
   "Make the reMarkable the primary screen."
   (interactive)