Localizator

autostart

May 22nd, 2012
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.71 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. # Set a background color
  5. BG=""
  6. if which hsetroot >/dev/null 2>&1; then
  7.     BG=hsetroot
  8. else
  9.     if which esetroot >/dev/null 2>&1; then
  10.     BG=esetroot
  11.     else
  12.     if which xsetroot >/dev/null 2>&1; then
  13.         BG=xsetroot
  14.     fi
  15.     fi
  16. fi
  17. test -z $BG || $BG -solid "#303030"
  18.  
  19. # D-bus
  20. if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
  21.        eval `dbus-launch --sh-syntax --exit-with-session`
  22. fi
  23.  
  24. # Make GTK apps look and behave how they were set up in the gnome config tools
  25. if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  26.   /usr/libexec/gnome-settings-daemon &
  27. elif which gnome-settings-daemon >/dev/null 2>&1; then
  28.   gnome-settings-daemon &
  29. # Make GTK apps look and behave how they were set up in the XFCE config tools
  30. elif which xfce-mcs-manager >/dev/null 2>&1; then
  31.   xfce-mcs-manager n &
  32. fi
  33.  
  34. # Preload stuff for KDE apps
  35. if which start_kdeinit >/dev/null 2>&1; then
  36.   LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
  37. fi
  38.  
  39. # Run XDG autostart things.  By default don't run anything desktop-specific
  40. # See xdg-autostart --help more info
  41. DESKTOP_ENV="OPENBOX"
  42. if which /usr/lib/openbox/xdg-autostart >/dev/null 2>&1; then
  43.   /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
  44. fi
  45. #(sleep 3 && /usr/bin/nm-applet --sm-disable) &
  46. xcompmgr &
  47. urxvtd -q -o -f &
  48. dropboxd &
  49. conkyrun -openbox &
  50. tint2 &
  51. screensaveroff &
  52. volumeicon -b &
  53. setxkbmap -option grp:alt_shift_toggle,lv3:ralt_switch,grp_led:scroll us,ua,ru &
  54. #pcmanfm --desktop &
  55. parcellite &
  56. #nitrogen --restore &
  57. feh  --bg-scale '/mnt/vol3/doc/wallpapers/wallpaper-15497.jpg'
Advertisement
Add Comment
Please, Sign In to add comment