comparison bin/setup-X.sh @ 503:dfd5357403aa

moar betterer
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 31 Aug 2013 16:05:56 -0700
parents 155c8a6b471e
children 42d3418e9154
comparison
equal deleted inserted replaced
502:155c8a6b471e 503:dfd5357403aa
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # daemons 3 ### daemons
4 for i in nm-applet gkrellm diodon # 'synapse -s' 4 # nm-applet: network manager
5 # gkrellm: system monitor
6 # diodon: clipboard manager
7 # arbtt-capture: arbitrary time tracker (redundant with tracker?)
5 # To add: x-tile; qamixer (well, some mixer); gnome-activity journal 8 # To add: x-tile; qamixer (well, some mixer); gnome-activity journal
9 for i in nm-applet gkrellm diodon arbtt-capture
6 do 10 do
7 if ! pidof ${i} 11 if which ${i}
8 then 12 then
9 echo "not running: $i" 13 if ! pidof ${i}
10 if which ${i}
11 then 14 then
15 echo "not running: $i"
12 ${i} & 16 ${i} &
13 fi 17 fi
14 fi 18 fi
15 done 19 done
16 20
17 # TODO: add workspace specific programs 21 # TODO: add workspace specific programs
18 22
19 # arbitrary time tracker
20 if which arbtt-capture
21 then
22 arbtt-capture
23 fi
24
25 # ssh-add 23 # ssh-add
26 if [[ `ssh-add -l` != *id_?sa* ]] 24 if [[ `ssh-add -l` != *id_?sa* ]]
27 then 25 then
28 SSH_ASKPASS=/usr/bin/ksshaskpass 26 SSH_ASKPASS=/usr/bin/ksshaskpass
29 if [[ -e $SSH_ASKPASS ]] 27 if [[ -e $SSH_ASKPASS ]]
30 then 28 then
31 ssh-add 29 SSH_ASKPASS=${SSH_ASKPASS} ssh-add
32 fi 30 fi
33 fi 31 fi