view 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
line wrap: on
line source

#!/bin/bash

### daemons
# nm-applet: network manager
# gkrellm: system monitor
# diodon: clipboard manager
# arbtt-capture: arbitrary time tracker (redundant with tracker?)
# To add: x-tile; qamixer (well, some mixer); gnome-activity journal
for i in nm-applet gkrellm diodon arbtt-capture
do
    if which ${i}
    then
        if ! pidof ${i}
        then
            echo "not running: $i"
            ${i} &
        fi
    fi
done

# TODO: add workspace specific programs

# ssh-add
if [[ `ssh-add -l` != *id_?sa* ]]
then
 SSH_ASKPASS=/usr/bin/ksshaskpass
 if [[ -e $SSH_ASKPASS ]]
 then
   SSH_ASKPASS=${SSH_ASKPASS} ssh-add
 fi
fi