Advertisement
timcowchip

fredg's xinitrc

Feb 27th, 2013
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. userresources=$HOME/.Xresources
  4. usermodmap=$HOME/.Xmodmap
  5. sysresources=/usr/lib/X11/xinit/.Xresources
  6. sysmodmap=/usr/lib/X11/xinit/.Xmodmap
  7.  
  8. # merge in defaults and keymaps
  9.  
  10. if [ -f $sysresources ]; then
  11. xrdb -merge $sysresources
  12. fi
  13.  
  14. if [ -f $sysmodmap ]; then
  15. xmodmap $sysmodmap
  16. fi
  17.  
  18. if [ -f $userresources ]; then
  19. xrdb -merge $userresources
  20. fi
  21.  
  22. if [ -f $usermodmap ]; then
  23. xmodmap $usermodmap
  24. fi
  25.  
  26. # Start the WMFS status.sh file at startup
  27. if [ -x $HOME/.config/wmfs/status.sh ]; then
  28. exec $HOME/.config/wmfs/status.sh &
  29. fi
  30.  
  31. # Start the window manager:
  32. if [ -x /usr/bin/ck-launch-session ]; then
  33. LAUNCH="ck-launch-session"
  34. else
  35. LAUNCH=""
  36. fi
  37. if [ -x /usr/bin/dbus-launch ]; then
  38. LAUNCH="$LAUNCH dbus-launch"
  39. fi
  40. exec $LAUNCH /usr/bin/wmfs &
  41.  
  42. wmfspid=$! # wmfs PID
  43.  
  44. # Wallpaper
  45. hsetroot -fill /home/chris/Wallpaper/1024px-Cascadelocks1.png &
  46.  
  47. wait $wmfspid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement