|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #!/bin/sh
- # Programs run in background when starting x.
- # Japanese IM settings are not included in this script.
-
- _feh(){
- test -f "$HOME/.fehbg" && \
- type feh >/dev/null 2>&1 && \
- sh "$HOME/.fehbg"
- }
-
- _tint2(){
- #tint2 -c ~/.dotfiles/tint2rc &
- (sleep 1s && tint2) &
- }
-
- _neap_hotkey(){
- (sleep 1s && neap-hotkey) &
- }
-
- _synapse(){
- (sleep 1s && synapse --startup) &
- }
-
- _dropbox(){
- dropboxd & # done by ~/.config/autostart/dropbox.desktop
- }
-
- _volumeicon(){
- (sleep 1s && volumeicon) &
- }
-
- _gsoundap(){
- gnome-sound-applet &
- }
-
- _conky(){
- (sleep 1s && \
- conky -config="$HOME/conkyrc" --daemonize >~/.var/log/conky.log 2>&1)
- #conky -c ~/.dotfiles/conkyrc.2 >~/.var/log/conky.2.log 2>&1 &
- }
-
- _wicd(){
- # done by /etc/xdg/autostart/wicd-client.desktop
- wicd-client --tray &
- }
-
- _udisksvm(){
- # detect insertion of an optical disk
- if ! pgrep -lf "udisks-daemon: polling /dev/sr0"; then
- udisks --poll-for-media /dev/sr0
- fi
- udisksvm >/dev/null &
- }
-
- _xcompmgr(){
- xcompmgr -c &
- }
-
- _compton(){
- (sleep 1s && compton -b) &
- }
-
- _saku(){
- (cd ~/src/saku-3.11.1/ && python2 saku.py) &
- }
-
- _gkeyring(){
- /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
- eval $(gnome-keyring-daemon -s) &
- }
-
- _nmapplet(){
- (sleep 1s && nm-applet) &
- }
-
- _lxpolkit(){
- (sleep 1s && /usr/lib/lxpolkit/lxpolkit) &
- }
-
- _xscreensaver(){
- (sleep 1s && xscreensaver -no-splash) &
- }
-
- _xsslock(){
- # run _xscreensaver then this to enable locking on sleep
- (sleep 3s && xss-lock -- xscreensaver-command -lock) &
- }
-
- _tomboy(){
- (sleep 3s && tomboy) &
- }
-
- _macbook_rightclick(){
- _mrc_emutgt=dev.mac_hid.mouse_button_emulation
- _mrc_codetgt=dev.mac_hid.mouse_button3_keycode
-
- if test "`sysctl -n $_mrc_emutgt`" = 1 -a "`sysctl -n $_mrc_codetgt`" = 126
- then
- # nothing to do
- true
- else
- (sleep 2s && \
- gksudo -g -- sh -c "sysctl ${_mrc_emutgt}=1 ${_mrc_codetgt}=126 | \
- logger -t macbook_rightclick") &
- fi
- }
-
- for p in $@
- do
- _$p
- done
|