dotfiles/.local/bin/scripts/setupScreens

11 lines
646 B
Plaintext
Executable File

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
if test "$1" == "left"
then xrandr --output $k2 --auto --scale 2x2 --pos 0x0 --output $k4 --auto --scale 1x1 --pos 3841x0
else xrandr --output $k4 --auto --scale 1x1 --pos 0x0 --output $k2 --auto --scale 2x2 --mode 1920x1080 --pos 3841x0
fi
#--fb 7681x2160
#xrandr --output $dp --auto --scale 0.5x0.5 --output $hdmi --scale 1x1 --mode 1920x1080 --fb 5760x1080 --right-of $dp