xinitrc.icewm 817 B

1234567891011121314151617181920212223242526272829303132
  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. [ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
  8. [ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
  9. [ -f $userresources ] && /usr/bin/xrdb -merge $userresources
  10. [ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
  11. # Create default user directory & populate it if needed
  12. mkdir -p ${HOME}/.icewm
  13. for FILE in keys menu preferences shutdown startup toolbar winoptions ; do
  14. if [ ! -e ${HOME}/.icewm/${FILE} ]; then
  15. cat /usr/share/icewm/${FILE} > ${HOME}/.icewm/${FILE} ;
  16. fi
  17. done
  18. # Start IceWM
  19. icewmbg &
  20. icewmtray &
  21. if [ -z "$DESKTOP_SESSION" ]; then
  22. dbus-launch --exit-with-session icewm-session
  23. else
  24. exec icewm-session
  25. fi