.xinitrc 921 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. userresources=$HOME/.Xresources
  3. usermodmap=$HOME/.Xmodmap
  4. sysresources=/etc/X11/xinit/.Xresources
  5. sysmodmap=~/.Xmodmap
  6. # merge in defaults and keymaps
  7. if [ -f $sysresources ]; then
  8. xrdb -merge $sysresources
  9. fi
  10. if [ -f $sysmodmap ]; then
  11. xmodmap $sysmodmap
  12. fi
  13. if [ -f "$userresources" ]; then
  14. xrdb -merge "$userresources"
  15. fi
  16. if [ -f "$usermodmap" ]; then
  17. xmodmap "$usermodmap"
  18. fi
  19. # start some nice programs
  20. if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  21. for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  22. [ -x "$f" ] && . "$f"
  23. done
  24. unset f
  25. fi
  26. # keyboard
  27. exec setxkbmap -option caps:escape -layout de &
  28. exec xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Tap Action' 1 1 1 1 1 1 1 &
  29. exec xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Two-Finger Scrolling' 1 1 &
  30. exec xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -.3 &
  31. #and finally start the WM
  32. exec i3