home · contact · privacy
Some keymap and xterm improvement.
[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 # Set up compose key.
17 xmodmap ~/.Xmodmap
18
19 # Optionally, for certain Optimus systems with a first GPU connected to the
20 # display and a second (NVidia) GPU providing 3D acceleration, use the first GPU
21 # as sink for the second. This may confuse DPI settings, so re-set those.
22 if [ "${NVIDIA_DIRECT}" ]; then
23   xrandr --setprovideroutputsource modesetting NVIDIA-0
24   xrandr --auto
25   xrandr --dpi 96
26 fi
27
28 # Launch window manager.
29 i3 -c ~/.i3