From a4bde87c1d05a1a7d6d9a98fa969c6f521bd9259 Mon Sep 17 00:00:00 2001 From: Zonric Date: Fri, 10 Feb 2023 04:26:08 -0500 Subject: [PATCH] Switch from xrandr script to xorg configs + 20-amdgpu.conf -> /etc/X11/xorg.conf.d/ # AMD TearFree Config + 30-monitors.conf -> /etc/X11/xorg.conf.d/ # Three monitor Config --- .config/xorg/20-amdgpu.conf | 6 ++++++ .config/xorg/30-monitors.conf | 23 +++++++++++++++++++++++ .config/xorg/monitorsetup.sh | 7 ------- 3 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 .config/xorg/20-amdgpu.conf create mode 100644 .config/xorg/30-monitors.conf delete mode 100755 .config/xorg/monitorsetup.sh diff --git a/.config/xorg/20-amdgpu.conf b/.config/xorg/20-amdgpu.conf new file mode 100644 index 0000000..ce088b8 --- /dev/null +++ b/.config/xorg/20-amdgpu.conf @@ -0,0 +1,6 @@ +Section "Device" + Identifier "AMD" + Driver "amdgpu" + Option "TearFree" "true" +EndSection + diff --git a/.config/xorg/30-monitors.conf b/.config/xorg/30-monitors.conf new file mode 100644 index 0000000..45233af --- /dev/null +++ b/.config/xorg/30-monitors.conf @@ -0,0 +1,23 @@ +Section "Monitor" + Identifier "DisplayPort-0" + Option "PreferredMode" "3440x1440_144.00" + Option "RightOf" "DisplayPort-1" + Option "Primary" "true" + Option "DPMS" + Modeline "3440x1440_144.00" 1085.33 3440 3744 4128 4816 1440 1441 1444 1565 -HSync +Vsync +EndSection + +Section "Monitor" + Identifier "DisplayPort-1" + Option "PreferredMode" "1920x1080_144.00" + Option "Position" "0 0" + Option "DPMS" + Modeline "1920x1080_144.00" 451.72 1920 2080 2296 2672 1080 1081 1084 1174 -HSync +Vsync +EndSection + +Section "Monitor" + Identifier "DisplayPort-2" + Option "PreferredMode" "1920x1080_144.00" + Option "RightOf" "DisplayPort-0" + Modeline "1920x1080_144.00" 451.72 1920 2080 2296 2672 1080 1081 1084 1174 -HSync +Vsync +EndSection diff --git a/.config/xorg/monitorsetup.sh b/.config/xorg/monitorsetup.sh deleted file mode 100755 index adfe8a9..0000000 --- a/.config/xorg/monitorsetup.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -xrandr \ - --output DisplayPort-1 --mode 1920x1080 --rate 144.00 --pos 0x0 --rotate normal \ - --output DisplayPort-0 --mode 3440x1440 --rate 144.00 --right-of DisplayPort-1 --rotate normal --primary \ - --output DisplayPort-2 --mode 1920x1080 --rate 144.00 --right-of DisplayPort-0 --rotate normal -