xinitrc.cwm 540 B

12345678910111213141516171819
  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. if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  12. ck-launch-session dbus-launch --exit-with-session cwm
  13. else
  14. exec cwm
  15. fi