Various configuration aspects for devices are managed under `/etc/X11/` directory. The name is derived from the 11th version of the X Window System. of which e.g. #Arch uses the open-source implementation.
**Wayland is more and more replacing X11 for modern Linux desktops.**
- **`xorg.conf.d/`**
- Holds configuration files (`*.conf`) for input devices (keyboards, mice, touchpads, tablets), display devices (monitors, GPUs), ...
- see [[Keyboard Configuration Linux]] for an example
- **`xinit/`**:
- Contains scripts like `xinitrc` to manually initialize X sessions.
- **`xorg.conf`**:
- Legacy, modern systems use the modular `xorg.conf.d/`.
- **`Xsession` (optional)**:
- Scripts for configuring session startup
The number in front of the `.conf` file determines the order they are loaded (low first).
- `00-10`: Early/basic hardware configuration (keyboard, monitor).
- `20-50`: Device-specific settings (mouse, touchpad, graphics driver tweaks).
- `60-99`: Custom user-specific overrides or optional settings.
| Device/Feature | Configuration example files |
| ---------------------- | --------------------------------- |
| Keyboard | `00-keyboard.conf` |
| Touchpad | `30-touchpad.conf` |
| Graphics driver tweaks | `20-intel.conf`, `10-nvidia.conf` |
| Monitor settings | `10-monitor.conf` |
| Mouse/Input tweaks | `50-mouse.conf` |