Skip to content

Instantly share code, notes, and snippets.

@scaramangado
Last active November 24, 2023 04:53
Show Gist options
  • Save scaramangado/7340b4afdf18a81ed3a5e99489a08c2d to your computer and use it in GitHub Desktop.
Save scaramangado/7340b4afdf18a81ed3a5e99489a08c2d to your computer and use it in GitHub Desktop.
X.org config
# /etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection
# /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
# ASUS VP28U
Identifier "DisplayPort-0"
Modeline "3840x2160R" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
Option "Position" "0 0"
Option "PreferredMode" "3840x2160R"
Option "TargetRefresh" "60"
EndSection
Section "Monitor"
# ASUS VG248
Identifier "DisplayPort-1"
Modeline "1920x1080_165.00" 525.00 1920 2088 2296 2672 1080 1083 1088 1192 -hsync +vsync
Option "Position" "3840 0"
Option "PreferredMode" "1920x1080_165.00"
EndSection
# /etc/X11/xorg.conf.d/20-amdgpu.conf
Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "TearFree" "on"
EndSection
# /etc/X11/xorg.conf.d/90-hardware-accelaration.conf
Section "Extensions"
Option "GLX" "Enable"
EndSection
# /etc/X11/xinit/xinitrc.d/90-xrandr.sh
#!/bin/sh
xrandr --output DisplayPort-1 --scale 2x2
setxkbmap -option compose:sclk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment