#!/bin/bash

for i in `ps aux | grep [f]irefox |awk '{ print $2}'`; do break;done;
if [[ -n $i ]]
	then
		yad --text="<span font_desc=\"Arial bold italic 15\">Firefox is open,\nit would be better\nto close</span>" \
   			--image=$HOME/conky/calendrier/firefox3_64.png \
			--timeout=5 \
			--text-align="center" \
			--no-buttons --undecorated --borders=5 --fixed
		exit 0
fi

echo "N/A" > ~/conky/calendrier/tiret_apt

for i in `ps aux | grep [c]onkyrc_mailapt |awk '{ print $2}'`; do break;done;

if [[ -z $i ]]
	then
	conky -c ~/.conkyrc_mailapt &
fi

gksu synaptic

~/conky/calendrier/debaptupdate2.sh

exit 0
