timcowchip

.xinitrc

Feb 25th, 2013
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #----------------------------------------------------------------------
  2. # .xinitrc
  3. #
  4. # Created by /usr/share/antiX/lib/make-xinitrc
  5. # on 7 February 2013 @ 17:03:42 EST
  6. # Please add any modifications to .xinitrc-custom and not this file.
  7. # This file will be re-written by update-default-desktop. The
  8. # DEFAULT_DESKTOP line will be edited by antiX-init.sh if you use
  9. # a "desktop=xxx" boot parameter.
  10. #----------------------------------------------------------------------
  11.  
  12. [ -x ~/.xinitrc-custom ] && ~/.xinitrc-custom
  13.  
  14. [ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
  15.  
  16. DEFAULT_DESKTOP="wmfs"
  17.  
  18. export DESKTOP_CODE="$(echo "${1:-$DEFAULT_DESKTOP}" | tr "[A-Z]" "[a-z]")"
  19.  
  20. mkdir -p $HOME/.wallpaper
  21. echo "$DESKTOP_CODE" > $HOME/.wallpaper/session
  22.  
  23. case "$DESKTOP_CODE" in
  24. "fluxbox")
  25. exec /usr/bin/startfluxbox
  26. ;;
  27. "jwm")
  28. exec /usr/bin/jwm
  29. ;;
  30. "wmfs")
  31. ./wmfs.sh
  32. exec wmfs
  33. ;;
  34. *)
  35. exec wmfs
  36. ;;
  37. esac
Advertisement
Add Comment
Please, Sign In to add comment