X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=dotfiles%2Fuser%2Fthinkpad%2Fminimal%2Fxinitrc;h=44d3822ec68fcbb5257bcd90f242e046800ecc08;hb=eb0ea0270c9e96242f6b0a5da450c99f3586532b;hp=79065aa77c85bf227edda1c892a53cb3693e563c;hpb=a6ea23c10570e9f82472212c4e566596fcb0b803;p=config
diff --git a/dotfiles/user/thinkpad/minimal/xinitrc b/dotfiles/user/thinkpad/minimal/xinitrc
index 79065aa..44d3822 100644
--- a/dotfiles/user/thinkpad/minimal/xinitrc
+++ b/dotfiles/user/thinkpad/minimal/xinitrc
@@ -10,8 +10,23 @@ xrdb -merge ~/.Xresources-local
# Redshift to Berlin, Germany.
redshift -rl 53:13 &
-# Enforce QWERTZ.
+# Enforce QWERTZ. (Why twice?)
setxkbmap de
+# Use CapsLock as Ctrl, against the Emacs pinky.
+setxkbmap -option caps:ctrl_modifier
+
+# 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
+i3 -c ~/.i3