Advertisement
Guest User

autostart.sh

a guest
Oct 19th, 2011
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. # This shell script is run before Openbox launches.
  2. # Environment variables set here are passed to the Openbox session.
  3.  
  4. exec ck-launch-session dbus-launch &
  5.  
  6. # Set a background color
  7. BG=""
  8. if which hsetroot >/dev/null; then
  9. BG=hsetroot
  10. else
  11. if which esetroot >/dev/null; then
  12. BG=esetroot
  13. else
  14. if which xsetroot >/dev/null; then
  15. BG=xsetroot
  16. fi
  17. fi
  18. fi
  19. test -z $BG || $BG -solid "#303030"
  20.  
  21. # D-bus
  22. if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
  23. eval `dbus-launch --sh-syntax --exit-with-session`
  24. fi
  25.  
  26. # Make GTK apps look and behave how they were set up in the gnome config tools
  27. if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  28. /usr/libexec/gnome-settings-daemon &
  29. elif which gnome-settings-daemon >/dev/null; then
  30. gnome-settings-daemon &
  31. # Make GTK apps look and behave how they were set up in the XFCE config tools
  32. elif which xfce-mcs-manager >/dev/null; then
  33. xfce-mcs-manager n &
  34. fi
  35.  
  36. # Preload stuff for KDE apps
  37. if which start_kdeinit >/dev/null; then
  38. LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
  39. fi
  40.  
  41. # Run XDG autostart things. By default don't run anything desktop-specific
  42. # See xdg-autostart --help more info
  43. DESKTOP_ENV="OPENBOX"
  44. if which /usr/lib/openbox/xdg-autostart >/dev/null; then
  45. /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
  46. fi
  47.  
  48. exec ck-launch-session dbus-launch &
  49. xinput --set-prop '10' 'Device Accel Profile' -1 &
  50. xinput --set-prop '10' 'Device Accel Constant Deceleration' 1.5 &
  51. exec feh --bg-scale /media/storage/Pictures/einstein.jpg &
  52. exec thunar --daemon &
  53. exec xcompmgr -r15 -o -l0 -t0 -C -n -f -D1 -I -O &
  54. exec tint2 &
  55. exec parcellite &
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement