feat: Adds weather desktop file, I may need to fix how it gets copied in the dev-env script.

This commit is contained in:
2025-10-01 17:26:08 -04:00
parent dccf54e115
commit f37b5f1db2
8 changed files with 55 additions and 27 deletions

14
env/.local/scripts/get-weather vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Get the weather for the given location.
location=${1:-Cincinnati}
shouldContinue="1"
while [[ $shouldContinue == "1" ]]; do
echo -e "\e[H\e[2J" # clears the screen.
curl "wttr.in/$1"
shouldContinue=$(gum confirm "Quit / Refresh" --affirmative Quit --negative Refresh && echo "0" || echo "1")
done
echo -e "\e[H\e[2J" # clears the screen.

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=Weather
Comment=Get weather
Exec=ghostty --class=com.ghostty.weather -e /home/michael/.local/scripts/get-weather
Icon=/home/michael/.local/share/applications/icons/weather.png
Terminal=false
Type=Application
StartupNotify=true