dotfiles/eggs/waybar/bar/scripts/launch_detailed_weather.sh
Katzenkralle 4e9be09c10 Init
2025-05-10 19:23:48 +02:00

11 lines
403 B
Bash
Executable File

#!/usr/bin/env bash
h_time=$(date +%k)
if (( h_time > 6 )) && (( h_time < 22 )); then
discriptor="d"
else
discriptor="n"
fi
sh $HOME/Builds/microscripts/kill-on-unfocus kitty --class "bar_popup" --title "Weather Report" sh -c "curl -s 'v2$discriptor.wttr.in/Bremen?lang=en' | grep --invert-match 'Follow' | grep -v -e '^[[:space:]]*$'; read -n 1 -s -r -p 'Press any key to exit...'; exit"