Advertisement
Guest User

Untitled

a guest
Nov 20th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. ## Openbox autostart.sh
  2. ## ====================
  3. ## When you login to your CrunchBang++ Openbox session, this autostart script
  4. ## will be executed to set-up your environment and launch any applications
  5. ## you want to run at startup.
  6. ##
  7. ## Note*: some programs, such as 'nm-applet' are run via XDG autostart.
  8. ## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any
  9. ## XDG autostarted programs.
  10. ##
  11. ## More information about this can be found at:
  12. ## http://openbox.org/wiki/Help:Autostart
  13. ##
  14. ## If you do something cool with your autostart script and you think others
  15. ## could benefit from your hack, please consider sharing it at:
  16. ## https://www.reddit.com/r/crunchbangplusplus
  17. ##
  18. ## Have fun & happy CrunchBangin'! :)
  19.  
  20. ## GNOME PolicyKit and Keyring
  21. eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &
  22.  
  23. ## Set root window colour
  24. hsetroot -solid "#2E3436" &
  25.  
  26. ## Group start:
  27. ## 1. nitrogen - restores wallpaper
  28. ## 2. compositor - start
  29. ## 3. sleep - give compositor time to start
  30. ## 4. tint2 panel
  31. (\
  32. nitrogen --restore && \
  33. cbpp-compositor --start && \
  34. sleep 2s && \
  35. tint2 \
  36. ) &
  37.  
  38. ## Volume control for systray
  39. (sleep 2s && pnmixer) &
  40.  
  41. ## Start nm-applet for systray
  42. nm-applet &
  43.  
  44. ## Volume keys daemon
  45. xfce4-volumed &
  46.  
  47. ## Enable power management
  48. mate-power-manager &
  49.  
  50. ## Start Thunar Daemon
  51. thunar --daemon &
  52.  
  53. ## Detect and configure touchpad. See 'man synclient' for more info.
  54. if egrep -iq 'touchpad' /proc/bus/input/devices; then
  55. synclient VertEdgeScroll=1 TapButton1=1 &
  56. fi
  57.  
  58. ## Start xscreensaver
  59. xscreensaver -no-splash &
  60.  
  61. ## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
  62. ## Adjust the values according to your preferances.
  63. xset r rate 250 25 &
  64.  
  65. ## Turn on/off system beep
  66. xset b off &
  67.  
  68. ## cbpp-user-setup - User space initialization, sets .gtk-bookmarks and
  69. ## creates symlink in images to wallpaper folder only runs once. Safe to remove.
  70. ##~/.cbpp-user-setup &
  71.  
  72. ## cbpp-welcome - post-installation script, will not run in a live session and
  73. ## only runs once. Safe to remove.
  74. (sleep 10s && cbpp-welcome --firstrun) &
  75.  
  76. ## Keybord run
  77. setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ru &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement