annotate bin/setup-X.sh @ 497:2e51a55d303d

bin/setup-X.sh
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 14 Aug 2013 10:25:08 -0700
parents f783b7d4516b
children 155c8a6b471e
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
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 # daemons
378
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
4 for i in nm-applet gkrellm diodon # 'synapse -s'
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
5 # To add: x-tile; qamixer (well, some mixer); gnome-activity journal
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 do
495
7931adb82ce7 bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 378
diff changeset
7 if ! pidof ${i}
360
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 then
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 echo "not running: $i"
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 if which ${i}
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 then
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 ${i} &
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 fi
d0da972238d0 adding program to setup X
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14 fi
378
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
15 done
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
16
0e99d3a68066 notes to self....that didnt quite do what we wanted :(
Jeff Hammel <jhammel@mozilla.com>
parents: 360
diff changeset
17 # TODO: add workspace specific programs
496
f783b7d4516b bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 495
diff changeset
18
497
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
19 # ssh-add
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
20 if [[ `ssh-add -l` != *id_?sa* ]]
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
21 then
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
22 SSH_ASKPASS=/usr/bin/ksshaskpass
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
23 if [[ -e $SSH_ASKPASS ]]
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
24 then
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
25 ssh-add
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
26 fi
2e51a55d303d bin/setup-X.sh
Jeff Hammel <jhammel@mozilla.com>
parents: 496
diff changeset
27 fi