Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 10 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. _neap_hotkey(){
  14. (sleep 1s && neap-hotkey) &
  15. }
  16. _synapse(){
  17. (sleep 1s && synapse --startup) &
  18. }
  19. _dropbox(){
  20. dropboxd & # done by ~/.config/autostart/dropbox.desktop
  21. }
  22. _volumeicon(){
  23. (sleep 1s && volumeicon) &
  24. }
  25. _gsoundap(){
  26. gnome-sound-applet &
  27. }
  28. _conky(){
  29. (sleep 1s && \
  30. conky -config="$HOME/conkyrc" --daemonize >~/.var/log/conky.log 2>&1)
  31. #conky -c ~/.dotfiles/conkyrc.2 >~/.var/log/conky.2.log 2>&1 &
  32. }
  33. _wicd(){
  34. # done by /etc/xdg/autostart/wicd-client.desktop
  35. wicd-client --tray &
  36. }
  37. _udisksvm(){
  38. # detect insertion of an optical disk
  39. if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
  40. udisks --poll-for-media /dev/sr0
  41. fi
  42. udisksvm >/dev/null &
  43. }
  44. _xcompmgr(){
  45. xcompmgr -c &
  46. }
  47. _compton(){
  48. (sleep 1s && compton -b) &
  49. }
  50. _saku(){
  51. (cd ~/src/saku-3.11.1/ && python2 saku.py) &
  52. }
  53. _gkeyring(){
  54. /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
  55. eval $(gnome-keyring-daemon -s) &
  56. }
  57. _nmapplet(){
  58. (sleep 1s && nm-applet) &
  59. }
  60. _lxpolkit(){
  61. (sleep 1s && /usr/lib/lxpolkit/lxpolkit) &
  62. }
  63. _xscreensaver(){
  64. (sleep 1s && xscreensaver -no-splash) &
  65. }
  66. _xsslock(){
  67. # run _xscreensaver then this to enable locking on sleep
  68. (sleep 3s && xss-lock -- xscreensaver-command -lock) &
  69. }
  70. _macbook_rightclick(){
  71. _mrc_emutgt=dev.mac_hid.mouse_button_emulation
  72. _mrc_codetgt=dev.mac_hid.mouse_button3_keycode
  73. if test "`sysctl -n $_mrc_emutgt`" = 1 -a "`sysctl -n $_mrc_codetgt`" = 126
  74. then
  75. # nothing to do
  76. true
  77. else
  78. (sleep 2s && \
  79. gksudo -- sh -c "sysctl ${_mrc_emutgt}=1 ${_mrc_codetgt}=126 | \
  80. logger -t macbook_rightclick") &
  81. fi
  82. }
  83. for p in $@
  84. do
  85. _$p
  86. done