X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=dotfiles%2Fuser%2Fthinkpad%2Fminimal%2Fxinitrc;h=6a2ad7a4ae053ce19356968e55a12e21f1431847;hb=58725257e5d4d313c84f5e88c7738a57f4c29232;hp=030572315aa972f9228d9c2dcd14f2bbb9cc8b68;hpb=4946b282a1275c5ed9b4f5709bc8830afcce83ee;p=config diff --git a/dotfiles/user/thinkpad/minimal/xinitrc b/dotfiles/user/thinkpad/minimal/xinitrc index 0305723..6a2ad7a 100644 --- a/dotfiles/user/thinkpad/minimal/xinitrc +++ b/dotfiles/user/thinkpad/minimal/xinitrc @@ -10,11 +10,20 @@ xrdb -merge ~/.Xresources-local # Redshift to Berlin, Germany. redshift -rl 53:13 & -# Enforce QWERTZ. +# Enforce QWERTZ. (Why twice?) setxkbmap de # Set up compose key. xmodmap ~/.Xmodmap +# Optionally, for certain Optimus systems with a first GPU connected to the +# display and a second (NVidia) GPU providing 3D acceleration, use the first GPU +# as sink for the second. This may confuse DPI settings, so re-set those. +if [ "${NVIDIA_DIRECT}" ]; then + xrandr --setprovideroutputsource modesetting NVIDIA-0 + xrandr --auto + xrandr --dpi 96 +fi + # Launch window manager. i3 -c ~/.i3