.xinitrc 695 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. # Executed by startx (run your window manager from here)
  3. # Variables
  4. userresources=$HOME/.Xresources
  5. usermodmap=$HOME/.Xmodmap
  6. sysresources=/etc/X11/xinit/.Xresources
  7. sysmodmap=/etc/X11/xinit/.Xmodmap
  8. # Merge in defaults and keymaps
  9. if [ -f $sysresources ]; then
  10. xrdb -merge $sysresources
  11. fi
  12. if [ -f $sysmodmap ]; then
  13. xmodmap $sysmodmap
  14. fi
  15. if [ -f "$userresources" ]; then
  16. xrdb -merge "$userresources"
  17. fi
  18. if [ -f "$usermodmap" ]; then
  19. xmodmap "$usermodmap"
  20. fi
  21. # Sourcing shell scripts
  22. if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  23. for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  24. [ -x "$f" ] && . "$f"
  25. done
  26. unset f
  27. fi
  28. # Custom stuff
  29. exec i3
  30. start-pulseaudio-x11 &