From cbbcf4f08064bfa325cdaaf93aca4b245f70b78c Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 17 Feb 2020 11:02:50 +0100 Subject: [PATCH] add presentation modes --- x/.local/bin/xrandr-multiview.sh | 4 ++++ x/.local/bin/xrandr-stopmultiview.sh | 3 +++ x/.xinitrc | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 x/.local/bin/xrandr-multiview.sh create mode 100755 x/.local/bin/xrandr-stopmultiview.sh diff --git a/x/.local/bin/xrandr-multiview.sh b/x/.local/bin/xrandr-multiview.sh new file mode 100755 index 0000000..5fa2bdc --- /dev/null +++ b/x/.local/bin/xrandr-multiview.sh @@ -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 index 0000000..ef02c42 --- /dev/null +++ b/x/.local/bin/xrandr-stopmultiview.sh @@ -0,0 +1,3 @@ +#!/bin/sh +xrandr --delmonitor Presentation +killall dwm diff --git a/x/.xinitrc b/x/.xinitrc index 0132dab..2822f41 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -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 -- 2.20.1