#!/bin/bash
nbfic=$(trash-list | wc -l)

if [ $nbfic -eq 0 ]
  then
    yad --text-align="center" \
        --text="<span font_desc=\"DroidLogo bold italic 12\">There are\nNo Files in\nThe Recycle Bin</span>" \
        --timeout=3 \
        --image=$HOME/.icons/user-trash-empty.png \
        --no-buttons --undecorated --borders=3 \
        --geometry=200x100+980+740
  else
    if [ $nbfic -eq 1 ]
      then
        File="File"
      else
        File="Files"
    fi
    yad --text-align="center" \
        --text="<span font_desc=\"DroidLogo bold italic 12\">$nbfic $File\nClick to Manage\nThe Recycle Bin</span>" \
        --timeout=3 \
        --image=$HOME/.icons/user-trash-full.png \
        --no-buttons --undecorated --borders=3 \
        --geometry=200x100+980+740
fi

exit 0