diff options
author | Raul Benencia <rul@kalgan.cc> | 2020-05-24 13:44:14 -0700 |
---|---|---|
committer | Raul Benencia <rul@kalgan.cc> | 2020-05-24 13:47:59 -0700 |
commit | 546a3a211a0d59f14edbd97c1990476e84a46247 (patch) | |
tree | c5709cc4a8f7b0f39e1cb023f0f6b03bf749272e /bin/xrandr-rul | |
parent | 3589f3e66769e87831e9f31fb3493064dd3ce73e (diff) |
Add bin/ repo from home-bin/ repo
Diffstat (limited to 'bin/xrandr-rul')
-rwxr-xr-x | bin/xrandr-rul | 21 |
1 files changed, 21 insertions, 0 deletions
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)" |