home · contact · privacy
WIP
[config] / dotfiles / user / thinkpad / minimal / xinitrc
1 # X init configuration
2
3 # Set keymap.
4 setxkbmap de
5
6 # Read in X configuration.
7 xrdb -merge ~/.Xresources
8 xrdb -merge ~/.Xresources-local
9
10 # Redshift to Berlin, Germany.
11 redshift -rl 53:13 &
12
13 # Enforce QWERTZ. (Why twice?)
14 setxkbmap de
15
16 # Use CapsLock as Ctrl, against the Emacs pinky.
17 setxkbmap -option caps:ctrl_modifier
18
19 # Set up compose key.
20 xmodmap ~/.Xmodmap
21
22 # Optionally, for certain Optimus systems with a first GPU connected to the
23 # display and a second (NVidia) GPU providing 3D acceleration, use the first GPU
24 # as sink for the second. This may confuse DPI settings, so re-set those.
25 if [ "${NVIDIA_DIRECT}" ]; then
26   xrandr --setprovideroutputsource modesetting NVIDIA-0
27   xrandr --auto
28   xrandr --dpi 96
29 fi
30
31 # Launch window manager.
32 i3 -c ~/.i3