annotate bin/setup-X.sh @ 508:9b69ce4e50a4

stub
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 01 Sep 2013 19:38:34 -0700
parents dfd5357403aa
children 42d3418e9154
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 #!/bin/bash
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
3 ### daemons
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
4 # nm-applet: network manager
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
5 # gkrellm: system monitor
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
6 # diodon: clipboard manager
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
7 # arbtt-capture: arbitrary time tracker (redundant with tracker?)
378
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
8 # To add: x-tile; qamixer (well, some mixer); gnome-activity journal
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
9 for i in nm-applet gkrellm diodon arbtt-capture
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 do
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
11 if which ${i}
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 then
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
13 if ! pidof ${i}
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 then
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
15 echo "not running: $i"
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 ${i} &
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 fi
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 fi
378
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
19 done
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
20
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
21 # TODO: add workspace specific programs
496
f783b7d4516b bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 495
diff changeset
22
497
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
23 # ssh-add
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
24 if [[ `ssh-add -l` != *id_?sa* ]]
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
25 then
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
26 SSH_ASKPASS=/usr/bin/ksshaskpass
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
27 if [[ -e $SSH_ASKPASS ]]
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
28 then
503
dfd5357403aa moar betterer
Jeff Hammel <jhammel@mozilla.com>
parents: 502
diff changeset
29 SSH_ASKPASS=${SSH_ASKPASS} ssh-add
497
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
30 fi
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
31 fi