From d5ced0a97d580bad21056ea1c32b27e6bffb7670 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Sat, 3 Oct 2020 11:34:04 +0200 Subject: [PATCH] local/bin: Update setupScreens --- .local/bin/setupScreens | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.local/bin/setupScreens b/.local/bin/setupScreens index 1616d5f..9eed058 100755 --- a/.local/bin/setupScreens +++ b/.local/bin/setupScreens @@ -1,5 +1,10 @@ -dp=$(xrandr | grep '^D.* con' | cut -d' ' -f1) -hdmi=$(xrandr | grep '^H.* con' | cut -d' ' -f1) +#connected=$(xrandr | grep ' connected ') +#k4=$(xrandr | grep '3840' | cut -d' ' -f1) +#k2=$(xrandr | grep '1920' | cut -d' ' -f1) +k4=$(xrandr | grep -1 ' 3840' | grep ' connected ' | cut -d' ' -f1) +k2=$(xrandr | grep -1 ' 1920' | grep ' connected ' | cut -d' ' -f1) + #xrandr --output $dp --auto --output $hdmi --mode 1680x1050 --scale 2x2 --right-of $dp && xrandr --output $hdmi --mode 1920x1080 -xrandr --output $dp --auto --output $hdmi --scale 2x2 --mode 1920x1080 --fb 7681x2160 --pos 3841x0 +xrandr --output $k4 --auto --scale 1x1 --pos 0x0 --output $k2 --auto --scale 2x2 --mode 1920x1080 --pos 3841x0 + #--fb 7681x2160 #xrandr --output $dp --auto --scale 0.5x0.5 --output $hdmi --scale 1x1 --mode 1920x1080 --fb 5760x1080 --right-of $dp