diff options
| author | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 16:38:45 +0545 |
|---|---|---|
| committer | prabinpanta0 <pantaprabin30@gmail.com> | 2025-10-28 16:38:45 +0545 |
| commit | 05ca56247aae6cbc4e36cbf8bb8b39507d26dd64 (patch) | |
| tree | 4f8e103b68acb993480b0586d7661f79ce20e4b1 | |
| parent | d409213ae1e98bd80eca432a70a158d4c7c24b71 (diff) | |
chore(lock): prime weather cache before locking session
- Call weatherWrap.sh synchronously, then loginctl lock-session
- Ensures lockscreen/waybar can read an up-to-date ~/.cache/.weather_cache
| -rwxr-xr-x | config/hypr/scripts/LockScreen.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index 5e799181..17239406 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -4,4 +4,7 @@ # For Hyprlock #pidof hyprlock || hyprlock -q +# Ensure weather cache is up-to-date before locking (Waybar/lockscreen readers) +bash "$HOME/.secret/Hyprland-Dots/config/hypr/UserScripts/weatherWrap.sh" >/dev/null 2>&1 + loginctl lock-session
\ No newline at end of file |
