From 546a3a211a0d59f14edbd97c1990476e84a46247 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sun, 24 May 2020 13:44:14 -0700 Subject: Add bin/ repo from home-bin/ repo --- bin/xrandr-rul | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/xrandr-rul (limited to 'bin/xrandr-rul') diff --git a/bin/xrandr-rul b/bin/xrandr-rul new file mode 100755 index 0000000..0b76a98 --- /dev/null +++ b/bin/xrandr-rul @@ -0,0 +1,21 @@ +#!/bin/sh + +INT="eDP-1" + +export DISPLAY="${DISPLAY:-:0}" + +xrandr --output ${INT} --mode 1920x1080 # 1920x1440 #2560x1440 + +for EXT in DP-1 DP-2 HDMI-2 +do + if xrandr -q | grep -qs "^${EXT} connected" + then + xrandr --output ${EXT} --mode 3440x1440 + xrandr --output ${EXT} --left-of ${INT} + else + xrandr --output ${EXT} --off + fi +done + +# If we have a script for sorting out the workspaces, use it. +eval "$(command -v i3-fix-workspaces)" -- cgit v1.2.3