add presentation modes
authorMart Lubbers <mart@martlubbers.net>
Mon, 17 Feb 2020 10:02:50 +0000 (11:02 +0100)
committerMart Lubbers <mart@martlubbers.net>
Mon, 17 Feb 2020 10:02:50 +0000 (11:02 +0100)
x/.local/bin/xrandr-multiview.sh [new file with mode: 0755]
x/.local/bin/xrandr-stopmultiview.sh [new file with mode: 0755]
x/.xinitrc

diff --git a/x/.local/bin/xrandr-multiview.sh b/x/.local/bin/xrandr-multiview.sh
new file mode 100755 (executable)
index 0000000..5fa2bdc
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+xrandr --setmonitor Presentation 3840/1040x1080/640+0+0 eDP1,HDMI1
+xrandr --output eDP1 --auto --output HDMI1 --right-of eDP1 --mode 1920x1080
+killall dwm
diff --git a/x/.local/bin/xrandr-stopmultiview.sh b/x/.local/bin/xrandr-stopmultiview.sh
new file mode 100755 (executable)
index 0000000..ef02c42
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+xrandr --delmonitor Presentation
+killall dwm
index 0132dab..2822f41 100755 (executable)
@@ -26,5 +26,6 @@ fi
 # status bar
 while true; do xsetroot -name "$(bar)"; sleep 1m; done &
 
-# wm
+#xrandr --setmonitor Presentation 3840/1040x1080/640+0+0 eDP1,HDMI1
+#xrandr --output eDP1 --mode 1920x1080 --output HDMI1 --mode 1920x1080 --right-of=eDP1
 while true; do dwm 1>/tmp/dwm.log 2>&1; done