From 1aa05122be6db6cf72bfee65548df98a1a963f8e Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Fri, 23 Jul 2021 20:43:24 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20des=20ic=C3=B4nes=20borg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- borg-gui.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/borg-gui.sh b/borg-gui.sh index 7c46568..40b5753 100755 --- a/borg-gui.sh +++ b/borg-gui.sh @@ -65,7 +65,7 @@ if [ ! $1 = "" ]; then . "$1" else cd $dossierprofil - fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=600 --list --title "Liste des profils" --hide-header --column "profil") && . $fichierprofil + fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=600 --window-icon=$HOME/.icons/borg.svg --list --title "Liste des profils" --hide-header --column "profil") && . $fichierprofil fi if [ "$fichierprofil" = "" ]; then @@ -107,7 +107,7 @@ ap\nAfficher le profil\n\ --\n------------------------------------------\n\ ed\nEspace disque utilisé : $(df -k --output=pcent $borg_repo | tail -n +2)\n\ qu\nQuitter\ -" | zenity --list \ +" | zenity --window-icon=$HOME/.icons/borg.svg --list \ --height=400 --width=400 \ --title "BORG GUI : $nomsauvegarde" \ --hide-header --hide-column=1 --column "id" --column "choix") @@ -121,8 +121,8 @@ if [ "$choixmenu" = "cs" ] ;then DossierPresent $borg_dir if [ "$VarDossierPresent" != "false" ];then - borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | zenity --width=600 --progress --pulsate --auto-close --title="Sauvegarde en cours..." - sync | zenity --width=600 --progress --pulsate --auto-close --title="Synchronisation des écritures..." + borg create $borg_excludes $borg_compress $borg_repo::$borg_archive $borg_dir | zenity --width=600 --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close --title="Sauvegarde en cours..." + sync | zenity --width=600 --window-icon=$HOME/.icons/borg.svg --progress --pulsate --auto-close --title="Synchronisation des écritures..." zenity --notification --text "Sauvegarde $nomsauvegarde terminée" zenity --width=600 --info --text "Sauvegarde $nomsauvegarde terminée" fi @@ -131,9 +131,9 @@ elif [ "$choixmenu" = "ms" ];then # Monter une archive if [ "$filter" = "" ];then - borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") else - borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") fi mkdir $HOME/$borg_archive @@ -143,7 +143,7 @@ elif [ "$choixmenu" = "ms" ];then elif [ "$choixmenu" = "dm" ];then # Demonter une archive - ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=400 --list --title "Liste des points de montages" --column "Archive") + ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=400 --window-icon=$HOME/.icons/borg.svg --list --title "Liste des points de montages" --column "Archive") fusermount -u $ptnmontage | zenity --width=600 --progress --pulsate --auto-close sleep 5 | zenity --width=600 --progress --pulsate --auto-close rmdir $ptnmontage | zenity --width=600 --progress --pulsate --auto-close @@ -152,9 +152,9 @@ elif [ "$choixmenu" = "ss" ];then # Supprimmer une archive if [ "$filter" = "" ];then - borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") else - borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") fi @@ -170,9 +170,9 @@ elif [ "$choixmenu" = "is" ];then # Information archive if [ "$filter" = "" ];then - borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") else - borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --list --title "Listes des archives" --column "Archive") + borg_archive=$(borg list --short $borg_repo | grep $filter | zenity --height=500 --window-icon=$HOME/.icons/borg.svg --list --title "Listes des archives" --column "Archive") fi if [ "$borg_archive" = "" ];then