#!/bin/bash

nbfic=$(trash-list | wc -l)

if [ $nbfic -eq 0 ]
  then
  cp ~/.icons/user-trash-empty.png ~/.icons/user-trash.png
  else
  cp ~/.icons/user-trash-full.png ~/.icons/user-trash.png
fi

conky -c ~/.conkyrc_poubelle &

sleep 5

# poubelle-notification-notify or poubelle-notification-yad
xdotool search --name clicky behave %@ mouse-click exec poubelle & xdotool search --name clicky behave %@  mouse-enter exec poubelle-notification-yad

exit 0