add hyprland configs

This commit is contained in:
2025-07-06 17:59:26 +03:00
parent efc031f339
commit f85000910a
102 changed files with 5841 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/bash
cache_file="$HOME/.cache/wttr_cache.txt"
if [ ! -f "$cache_file" ]; then
mkdir -p "$(dirname "$cache_file")" # Create .cache directory if it doesn't exist
touch "$cache_file"
fi
last_modified=$(stat -c %Y "$cache_file")
current_date=$(date +%s)
time_diff=$((current_date - last_modified))
expiry_time=86400
cached_data=$(<"$cache_file")
if [ $time_diff -lt $expiry_time ] && [ -n "$cached_data" ]; then
echo "$cached_data"
exit
fi
response=$(curl -s wttr.in?format=%c+%C+%t 2>/dev/null)
city=$response
echo "$city" >"$cache_file"