Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
yad_yet_another_dialog [Le 14/09/2022, 21:35]
Amiralgaby [--notification] correction de code shell
yad_yet_another_dialog [Le 28/09/2022, 21:04] (Version actuelle)
Amiralgaby correction de certain script shell repéré grâce à wiki-corrector
Ligne 151: Ligne 151:
 recherche=$(yad --entry --title='​Recherche web' --text='​Tapez votre recherche'​ --text-align="​center"​ --no-escape --mouse --undecorated --skip-taskbar --on-top) recherche=$(yad --entry --title='​Recherche web' --text='​Tapez votre recherche'​ --text-align="​center"​ --no-escape --mouse --undecorated --skip-taskbar --on-top)
 recherche=${recherche//​ /+} recherche=${recherche//​ /+}
-xdg-open "​https://​www.google.fr/​search?​q="$recherche"&​site=webhp&​source=lnt&​tbs=lr:​lang_1fr&​lr=lang_fr"​+xdg-open "​https://​www.google.fr/​search?​q=$recherche&​site=webhp&​source=lnt&​tbs=lr:​lang_1fr&​lr=lang_fr"​
 </​code>​ </​code>​
 ====--form==== ====--form====
Ligne 179: Ligne 179:
 --field="​recherche:"​ ''​ \ --field="​recherche:"​ ''​ \
 --field="​Moteur:​CB"​ 'Forum ubuntu!^Google fr') --field="​Moteur:​CB"​ 'Forum ubuntu!^Google fr')
-rech=$(echo $search | awk 'BEGIN {FS="​|"​ } { print $1 }') +rech=$(echo ​"$search" ​| awk 'BEGIN {FS="​|"​ } { print $1 }') 
-moteur=$(echo $search | awk 'BEGIN {FS="​|"​ } { print $2 }')+moteur=$(echo ​"$search" ​| awk 'BEGIN {FS="​|"​ } { print $2 }')
 if [ "​$moteur"​ = "Forum ubuntu"​ ] if [ "​$moteur"​ = "Forum ubuntu"​ ]
 then then
Ligne 237: Ligne 237:
 --field="​recherche:"​ ''​ \ --field="​recherche:"​ ''​ \
 --field="​Moteur:​CB"​ 'Forum ubuntu!^Google fr') --field="​Moteur:​CB"​ 'Forum ubuntu!^Google fr')
-rech=$(echo $search | awk 'BEGIN {FS="​|"​ } { print $1 }') +rech=$(echo ​"$search" ​| awk 'BEGIN {FS="​|"​ } { print $1 }') 
-moteur=$(echo $search | awk 'BEGIN {FS="​|"​ } { print $2 }')+moteur=$(echo ​"$search" ​| awk 'BEGIN {FS="​|"​ } { print $2 }')
 if [ "​$moteur"​ = "Forum ubuntu"​ ] if [ "​$moteur"​ = "Forum ubuntu"​ ]
 then then
Ligne 258: Ligne 258:
 #!/bin/bash #!/bin/bash
 #####ID --KEY Création aléatoire de l'​id ​ #####ID --KEY Création aléatoire de l'​id ​
-id=$(echo $[($RANDOM % ($[10000 - 32000+ 1)) + 10000)+id=$(($RANDOM % ($((10000 - 32000)) + 1) + 10000))
 ##########​Onglet 1########## ##########​Onglet 1##########
 #####Avec une colonne#######​ #####Avec une colonne#######​
Ligne 305: Ligne 305:
 else else
   retour=$(yad --title="​Fichier à afficher"​ --width 800 --height 200 --text-align="​center"​ --list --radiolist --column="​Sélectionné"​ --column="​Fichier"​ --column="​Mis à jour" --column="​Utillisé"​ False "​$HOME/​Documents/​FichierUn"​ "​Non"​ "​Non"​ False "​$HOME/​Documents/​FichierDEux"​ "​Oui"​ "​Non"​ True "​$HOME/​Documents/​FichierTrois"​ "​Oui"​ "​Non"​)   retour=$(yad --title="​Fichier à afficher"​ --width 800 --height 200 --text-align="​center"​ --list --radiolist --column="​Sélectionné"​ --column="​Fichier"​ --column="​Mis à jour" --column="​Utillisé"​ False "​$HOME/​Documents/​FichierUn"​ "​Non"​ "​Non"​ False "​$HOME/​Documents/​FichierDEux"​ "​Oui"​ "​Non"​ True "​$HOME/​Documents/​FichierTrois"​ "​Oui"​ "​Non"​)
-  cat $(echo "​$retour"​ | cut -d'​|'​ -f2)+  cat "$(echo "​$retour"​ | cut -d'​|'​ -f2)"
 fi fi
-exit 0; 
 </​code>​ </​code>​
 {{ :​yad_disco_00_radiolist.png?​direct&​800 |}} {{ :​yad_disco_00_radiolist.png?​direct&​800 |}}
  • yad_yet_another_dialog.txt
  • Dernière modification: Le 28/09/2022, 21:04
  • par Amiralgaby