Skip to content

Instantly share code, notes, and snippets.

@corentinbettiol
Last active October 9, 2021 16:41
Show Gist options
  • Save corentinbettiol/84b9ce18ac72b18b162dedf48093e97b to your computer and use it in GitHub Desktop.
Save corentinbettiol/84b9ce18ac72b18b162dedf48093e97b to your computer and use it in GitHub Desktop.

Afficher la météo avec zenity & wttr.in:

Créer un fichier meteo.desktop quelque part sur votre ordinateur, contenant ceci :

[Desktop Entry]
Encoding=UTF-8
Version=0.0.1
Type=Application
Terminal=false
Exec=bash -c "zenity --text-info --html --url='https://wttr.in/$(zenity --entry --title='Météo' --text='Entrez le nom de la ville :' --entry-text='chateaudouble')?1&F' --width=920 --height=355"
Name=Météo
Icon=meteo

(Optionnel) Télécharger l'icone et la placer dans le bon dossier pour qu'elle soit reconnue automatiquement :

sudo wget https://up.l3m.in/file/1633796556-meteo.png -O /usr/share/pixmaps/meteo.png

Screenshots

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment