masquage des collonnes au premier menu

This commit is contained in:
Djan GICQUEL 2021-03-10 19:56:52 +01:00
parent 6b8395a81b
commit ddba8939e6
1 changed files with 6 additions and 9 deletions

View File

@ -70,8 +70,8 @@ if [ ! $1 = "" ]; then
fichierprofil="$1"
. "$1"
else
cd $HOME/.config/borg/
fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=400 --list --title "Profils" --column "profil") && . $fichierprofil
cd $dossierprofil
fichierprofil=$(ls -1 *.txt | zenity --height=500 --width=400 --list --title "Profils" --hide-header --column "profil") && . $fichierprofil
fi
if [ "$nomsauvegarde" = "" ]; then
@ -118,7 +118,7 @@ elif [ "$choixmenu" = "ms" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
mkdir $HOME/$borg_archive
borg mount $borg_repo::$borg_archive $HOME/$borg_archive
zenity --width=400 --info --text="La sauvegarde est disponible dans le dossier\n$HOME/$borg_archive"
zenity --width=400 --info --text="La sauvegarde est disponible dans le dossier\n<tt>$HOME/$borg_archive</tt>"
elif [ "$choixmenu" = "dm" ];then
ptnmontage=$(mount | grep borgfs | cut -d" " -f3 | zenity --width=500 --height=400 --list --title "Liste des points de montages" --column "")
@ -133,16 +133,13 @@ elif [ "$choixmenu" = "ss" ];then
elif [ "$choixmenu" = "is" ];then
borg_archive=$(borg list --short $borg_repo | zenity --height=500 --list --title "Listes des archives" --column "Archive")
info=$(borg info $borg_repo::$borg_archive)
zenity --width=600 --info --text="<tt>$info</tt>"
zenity --width=600 --info --text="<tt>$(borg info $borg_repo::$borg_archive)</tt>"
elif [ "$choixmenu" = "id" ];then
info=$(borg info $borg_repo)
zenity --width=600 --info --text="<tt>$info</tt>"
zenity --width=600 --info --text="<tt>$(borg info $borg_repo)</tt>"
elif [ "$choixmenu" = "ap" ];then
info=$(cd $dossierprofil && cat $fichierprofil)
zenity --width=600 --height=400 --info --text="<tt>$info</tt>"
zenity --width=600 --height=400 --info --text="<tt>$(cd $dossierprofil && cat $fichierprofil)</tt>"
elif [ "$choixmenu" = "" ];then
zenity --width=500 --info --text="Aucun choix, retour au menu."