You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

75 lines
1.2 KiB

  1. #!/bin/sh
  2. # Programs run in background when starting x.
  3. # Japanese IM settings are not included in this script.
  4. _feh(){
  5. test -f "$HOME/.fehbg" &&
  6. type feh >/dev/null 2>&1 &&
  7. sh "$HOME/.fehbg"
  8. }
  9. _tint2(){
  10. #tint2 -c ~/.dotfiles/tint2rc &
  11. (sleep 1s && tint2) &
  12. }
  13. _synapse(){
  14. (sleep 1s && synapse --startup) &
  15. }
  16. _dropbox(){
  17. dropboxd & # done by ~/.config/autostart/dropbox.desktop
  18. }
  19. _volumeicon(){
  20. (sleep 1s && volumeicon) &
  21. }
  22. _gsoundap(){
  23. gnome-sound-applet &
  24. }
  25. _conky(){
  26. conky -c ~/.dotfiles/conkyrc >~/.var/log/conky.log 2>&1 &
  27. conky -c ~/.dotfiles/conkyrc.2 >~/.var/log/conky.2.log 2>&1 &
  28. }
  29. _wicd(){
  30. # done by /etc/xdg/autostart/wicd-client.desktop
  31. wicd-client --tray &
  32. }
  33. _udisksvm(){
  34. # detect insertion of an optical disk
  35. if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
  36. udisks --poll-for-media /dev/sr0
  37. fi
  38. udisksvm >/dev/null &
  39. }
  40. _xcompmgr(){
  41. xcompmgr -c &
  42. }
  43. _compton(){
  44. compton -b
  45. }
  46. _saku(){
  47. (cd ~/src/saku-3.11.1/ && python2 saku.py) &
  48. }
  49. _gkeyring(){
  50. /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
  51. eval $(gnome-keyring-daemon -s) &
  52. }
  53. _nmapplet(){
  54. (sleep 1s && nm-applet) &
  55. }
  56. for p in $@
  57. do
  58. _$p
  59. done