From a7ac5dce7f55e7777595c92138d396b6a721e4bd Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Tue, 4 Jan 2022 16:09:59 +0100 Subject: [PATCH] Use autorandr Signed-off-by: Severin Kaderli --- system/.local/bin/resolution | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/system/.local/bin/resolution b/system/.local/bin/resolution index 4bdced7..c4c200d 100755 --- a/system/.local/bin/resolution +++ b/system/.local/bin/resolution @@ -13,33 +13,4 @@ # USAGE: # ./resolution -xrandr --listproviders | grep -q "modesetting" && xrandr --setprovideroutputsource 1 0 - -xrandr --dpi 96 - -if is-connected "HDMI1"; then - xrandr --output HDMI1 --primary --mode 1920x1200 --left-of eDP1 -else - xrandr --output HDMI1 --off > /dev/null 2>&1 -fi - -if is-connected "HDMI-1-1"; then - xrandr --output HDMI-1-1 --primary --mode 1920x1200 --left-of eDP-1-1 -else - xrandr --output HDMI-1-1 --off > /dev/null 2>&1 -fi - -xrandr --output eDP1 --mode 1920x1080 --pos 1920x0 --rotate normal -xrandr --output eDP-1-1 --mode 1920x1080 --pos 1920x0 --rotate normal - -if is-connected "DVI-I-1-1"; then - xrandr --output DVI-I-1-1 --mode 1920x1080 --left-of eDP1 -else - xrandr --output DVI-I-1-1 --off > /dev/null 2>&1 -fi - -if is-connected "DVI-I-2-1"; then - xrandr --output DVI-I-2-1 --mode 1920x1080 --left-of eDP-1-1 -else - xrandr --output DVI-I-2-1 --off > /dev/null 2>&1 -fi +autorandr --change