Skip to content

Instantly share code, notes, and snippets.

@Vicfred
Last active May 14, 2024 01:29
Show Gist options
  • Save Vicfred/75d6103ae04c8345c60104e1961020b2 to your computer and use it in GitHub Desktop.
Save Vicfred/75d6103ae04c8345c60104e1961020b2 to your computer and use it in GitHub Desktop.
multiple monitors in gentoo, 2 two monitors with xorg

Create a directory for the configurations

mkdir -p /etc/X11/xorg.conf.d

get the identifier from x11-apps/xrandr

xrandr -q

create the configuration for the monitors in /etc/X11/xorg.conf.d/10-monitor.conf (looks like /etc/X11/xorg.conf.d/50-video.conf is not needed)

Section "Monitor"
    Identifier  "DisplayPort-2"
    Option      "Primary" "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-A-0"
    Option      "LeftOf" "DisplayPort-2"
EndSection

References:

https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors

https://wiki.archlinux.org/title/multihead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment