view bin/setup-X.sh @ 502:155c8a6b471e

arbtt
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 29 Aug 2013 19:16:57 -0700
parents 2e51a55d303d
children dfd5357403aa
line wrap: on
line source

#!/bin/bash

# daemons
for i in nm-applet gkrellm diodon # 'synapse -s'
# To add: x-tile; qamixer (well, some mixer); gnome-activity journal
do
    if ! pidof ${i}
    then
        echo "not running: $i"
        if which ${i}
        then
            ${i} &
        fi
    fi
done

# TODO: add workspace specific programs

# arbitrary time tracker
if which arbtt-capture
then
    arbtt-capture
fi

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