diff options
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)" |