Fix some resolution bugs

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-29 19:33:47 +02:00
parent eb9fa33694
commit 90fce8e05b
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -13,11 +13,21 @@
# USAGE: # USAGE:
# ./resolution # ./resolution
$(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 1 0 if xrandr --listproviders | grep -q "modesetting"; then
xrandr --setprovideroutputsource 1 0
xrandr \
--dpi 96 \
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output DVI-I-1-1 --mode 1920x1080 --pos 3280x0 --rotate normal \
--output DVI-I-2-1 --mode 1920x1080 --pos 3280x0 --rotate normal
else
xrandr \
--dpi 96 \
--output HDMI1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal
fi
xrandr \
--dpi 96 \
--output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \
--output DVI-I-1-1 --mode 1920x1080 --pos 3280x0 --rotate normal \
--output DVI-I-2-1 --mode 1920x1080 --pos 3280x0 --rotate normal