From 8aed42b296479fc43e2f7c52ba013dd638f0ab6f Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Thu, 11 Aug 2022 18:07:41 +0200 Subject: [PATCH] notification espace disque faible --- borg-gui.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/borg-gui.sh b/borg-gui.sh index 4cc39d3..f942e9b 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -144,6 +144,13 @@ fi ################################################################################# if [ $menu_avance = "true" ];then + +# notification si espace disque faible +if [ $EspaceDisqueUtil -gt $seuil_alerte_espace_disque ];then +zenity --window-icon warning --notification --text="borg-zenity\nEspace disque faible" +fi + +# menu avancé choixmenu=$(echo -e "\ $(echo $MenuCreer)\ ms\nMonter une archive\n\ @@ -162,6 +169,12 @@ qu\nQUITTER\ --hide-header --hide-column=1 --column "id" --column "choix") else +# notification si espace disque faible +if [ $EspaceDisqueUtil -gt $seuil_alerte_espace_disque ];then +zenity --window-icon warning --notification --text="borg-zenity\nEspace disque faible" +fi + +# menu simple choixmenu=$(echo -e "\ $(echo $MenuCreer)\ ms\nMonter une archive\n\