diff options
author | Jesús <heckyel@hyperbola.info> | 2019-04-17 16:37:04 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-04-17 16:37:04 -0500 |
commit | d2a3fd287c0206af1d06eaa36a3ea85ca717d51a (patch) | |
tree | 2432315c023acad64a2f3fb674f546f94c9419ab /scripts/i3display.sh | |
download | i3-config-d2a3fd287c0206af1d06eaa36a3ea85ca717d51a.tar.lz i3-config-d2a3fd287c0206af1d06eaa36a3ea85ca717d51a.tar.xz i3-config-d2a3fd287c0206af1d06eaa36a3ea85ca717d51a.zip |
first commit
Diffstat (limited to 'scripts/i3display.sh')
-rw-r--r-- | scripts/i3display.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |