From 90fce8e05b5d785d106dea5f94593b3426baa512 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 29 May 2019 19:33:47 +0200 Subject: [PATCH] Fix some resolution bugs Signed-off-by: Severin Kaderli --- system/.local/bin/resolution | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/system/.local/bin/resolution b/system/.local/bin/resolution index 01d77f0..09455dc 100755 --- a/system/.local/bin/resolution +++ b/system/.local/bin/resolution @@ -13,11 +13,21 @@ # USAGE: # ./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