Xorg configuration
From wikinotes
Xorg is mostly self-configuring now, but you can still configure it with files.
Locations
/etc/X11/xorg.conf
X configuration /etc/X11/xorg.conf.d/*.conf
Add/override configuration
Auto-Configure
sudo Xorg -configure :1 # autoconfigure xorg in /root/xorg.conf.new (change to :2 if already running xorg)
Syntax
Example
# example with 3x monitor setup [1920x1080][2560x1440][1920x1080] Section "Monitor" Identifier "DP-1" Option "Disable" "false" Option "Rotate" "normal" Option "Position" "0 0" Option "TargetRefresh" "60" Option "PreferredMode" "1920x1080" EndSection Section "Monitor" Identifier "DP-3" Option "Primary" "true" Option "Disable" "false" Option "Rotate" "normal" Option "Position" "1920 0" Option "TargetRefresh" "60" Option "PreferredMode" "2560x1440" EndSection Section "Monitor" Identifier "DP-2" Option "Disable" "false" Option "Rotate" "normal" Option "Position" "4480 0" Option "TargetRefresh" "60" Option "PreferredMode" "1920x1080" EndSectionComponents
InputDevice Device Monitor/Output Screen Desktops/Workspaces