From d2a3fd287c0206af1d06eaa36a3ea85ca717d51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 17 Apr 2019 16:37:04 -0500 Subject: first commit --- scripts/i3display.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/i3display.sh (limited to 'scripts/i3display.sh') diff --git a/scripts/i3display.sh b/scripts/i3display.sh new file mode 100644 index 0000000..61818a7 --- /dev/null +++ b/scripts/i3display.sh @@ -0,0 +1,12 @@ +#!/bin/bash +IN="LVDS1" +EXT="VGA1" +if ( xrandr | grep -q "$EXT disconnected") +then + xrandr --output $IN --auto --output $EXT --off +else + xrandr --output $IN --auto --primary --output $EXT --auto --right-of $IN + ## Only VGA + # xrandr --output $IN --mode 1366x768 + # xrandr --output $EXT --mode 1366x768 --right-of $IN +fi -- cgit v1.2.3