Guest User

openbox autostart.sh

a guest
Oct 21st, 2011
924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. # run the system-wide support stuff
  2. #. $GLOBALAUTOSTART
  3.  
  4. ################################################################################
  5.  
  6. # This shell script is run before Openbox launches.
  7. # Environment variables set here are passed to the Openbox session.
  8.  
  9. # Set a background color
  10. #BG=""
  11. #if which hsetroot >/dev/null; then
  12. # BG=hsetroot
  13. #else
  14. # if which esetroot >/dev/null; then
  15. # BG=esetroot
  16. # else
  17. # if which xsetroot >/dev/null; then
  18. # BG=xsetroot
  19. # fi
  20. # fi
  21. #fi
  22. #test -z $BG || $BG -solid "#303030"
  23.  
  24. # D-bus
  25. if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
  26. eval `dbus-launch --sh-syntax --exit-with-session`
  27. fi
  28.  
  29. # Make GTK apps look and behave how they were set up in the gnome config tools
  30. #if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  31. # /usr/libexec/gnome-settings-daemon &
  32. #elif which gnome-settings-daemon >/dev/null; then
  33. # gnome-settings-daemon &
  34. # Make GTK apps look and behave how they were set up in the XFCE config tools
  35. #elif which xfsettingsd >/dev/null; then
  36. # xfsettingsd &
  37. #fi
  38.  
  39. # Preload stuff for KDE apps
  40. #if which start_kdeinit >/dev/null; then
  41. # LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
  42. #fi
  43.  
  44. # Run XDG autostart things. By default don't run anything desktop-specific
  45. # See xdg-autostart --help more info
  46. #DESKTOP_ENV=""
  47. #if which /usr/lib/openbox/xdg-autostart >/dev/null; then
  48. # /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
  49. #fi
  50.  
  51. ################################################################################
  52.  
  53. # Programs to launch at startup
  54. #hsetroot ~/wallpaper.png &
  55. xcompmgr -cC -t-0 -l-0 -r0 &
  56.  
  57. # SCIM support (for typing non-english characters)
  58. #export LC_CTYPE=sk_SK.utf8
  59. #export XMODIFIERS=@im=SCIM
  60. #export GTK_IM_MODULE=scim
  61. #export QT_IM_MODULE=scim
  62. #scim -d &
  63.  
  64. ################################################################################
  65.  
  66.  
  67. # Programs that will run after Openbox has started
  68.  
  69. # setting the background with feh
  70. (feh --bg-center "imgs/wallpapers/wallpaper.png") &
  71.  
  72. # visibility
  73. (python ~/bin/openbox/visibility-python/visibility.py) &
  74.  
  75. # conky
  76. (sleep 2 && conky) &
  77.  
  78. # trayer
  79. (sleep 2 && trayer --edge top --align right --expand true --transparent true --alpha 255 --SetDockType true --widthtype request --heighttype pixel --height 10 --margin 75 --distance 3) &
  80.  
  81. # battery check script
  82. (~/bin/openbox/battery-check.py) &
  83.  
  84. # start guake terminal-emulator
  85. (guake) &
  86.  
  87. # set numlock on
  88. (numlockx) &
  89.  
  90. # Make GTK apps look and behave how they were set up in the XFCE config tools
  91. (xfsettingsd) &
  92.  
  93. # make OpenOffice follow general Gtk theme
  94. export OOO_FORCE_DESKTOP=gnome
  95.  
  96.  
  97.  
  98.  
Advertisement
Add Comment
Please, Sign In to add comment