view bin/setup-X.sh @ 567:67e5137b1476

remove blind commit message
author Jeff Hammel <k0scist@gmail.com>
date Mon, 30 Dec 2013 23:05:30 -0800
parents 8d28fce0a6d6
children 1e1db18fb7fa
line wrap: on
line source

#!/bin/bash

### daemons
# nm-applet: network manager
# gkrellm: system monitor
# diodon: clipboard manager
# arbtt-capture: arbitrary time tracker
# x-tile: window tiling
# To add: qamixer (well, some mixer); gnome-activity journal
for i in nm-applet gkrellm diodon arbtt-capture x-tile
do
    if which ${i}
    then
        if ! pidof -x ${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
 else
   echo "not running ssh-add: ${SSH_ASKPASS} not found"
 fi
fi