xinitrc-icewm 738 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #! /bin/sh -
  2. userresources=$HOME/.Xresources
  3. usermodmap=$HOME/.Xmodmap
  4. sysresources=/etc/X11/xinit/.Xresources
  5. sysmodmap=/etc/X11/xinit/.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. # To populate the user directory if needed
  20. if test ! -d "${HOME}/.icewm"
  21. then
  22. mkdir -- "${HOME}/.icewm" && \
  23. for file in /usr/share/icewm/*
  24. do
  25. test -f "$file" || continue;
  26. cat -- "$file" > "${HOME}/.icewm/${file##*/}"
  27. done
  28. unset file
  29. fi
  30. # Start IceWM
  31. exec icewm-session