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.
 
 
 
 
 
 

64 lines
1.1 KiB

  1. #!/bin/sh
  2. # Programs run in background when starting x.
  3. # These programs are basically for Openbox Window Manager.
  4. # Japanese IM settings are not included in this list.
  5. # isarch && p="feh tint2 dropbox volumeicon conky udisksvm xcompmgr saku"
  6. _feh(){
  7. test -f "$HOME/.fehbg" &&
  8. type feh >/dev/null 2>&1 &&
  9. sh "$HOME/.fehbg"
  10. }
  11. _tint2(){
  12. #tint2 -c ~/.dotfiles/tint2rc &
  13. tint2 &
  14. }
  15. _dropbox(){
  16. dropboxd & # done by ~/.config/autostart/dropbox.desktop
  17. }
  18. _volumeicon(){
  19. volumeicon &
  20. }
  21. _conky(){
  22. conky -c ~/.dotfiles/conkyrc >~/.backup/log/conky.log 2>&1 &
  23. conky -c ~/.dotfiles/conkyrc.2 >~/.backup/log/conky.2.log 2>&1 &
  24. }
  25. _wicd(){
  26. #wicd-client --tray & # done by /etc/xdg/autostart/wicd-client.desktop
  27. true
  28. }
  29. _udisksvm(){
  30. # Detection of insertion of an optical disk
  31. if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
  32. udisks --poll-for-media /dev/sr0
  33. fi
  34. udisksvm >/dev/null &
  35. }
  36. _xcompmgr(){
  37. xcompmgr -c &
  38. }
  39. _saku(){
  40. (cd ~/src/saku-3.11.1/ && python2 saku.py) &
  41. }
  42. _gkeyring(){
  43. LANG=C gnome-keyring-daemon --start -c pkcs11 &
  44. }
  45. _nmapplet(){
  46. nm-applet &
  47. }
  48. for p in $@
  49. do
  50. _$p
  51. done