aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprabinpanta0 <pantaprabin30@gmail.com>2025-10-28 16:38:00 +0545
committerprabinpanta0 <pantaprabin30@gmail.com>2025-10-28 16:38:00 +0545
commitd409213ae1e98bd80eca432a70a158d4c7c24b71 (patch)
treead24f336d1494b1e8acb8a7eff4849c5f87eb735
parentc93aba52fb00e23b6902581c0837525334cbe837 (diff)
chore(hypridle): refresh weather cache synchronously on lock
- Run weatherWrap.sh before launching hyprlock so ~/.cache/.weather_cache exists - Switch from background to blocking call to avoid race with lockscreen draw - Keep existing idle listeners and comments unchanged
-rw-r--r--config/hypr/hypridle.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf
index 4b8cd7e2..c931419a 100644
--- a/config/hypr/hypridle.conf
+++ b/config/hypr/hypridle.conf
@@ -5,7 +5,7 @@
$iDIR="$HOME/.config/swaync/images/ja.png"
general {
- lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called)
+ lock_cmd = sh -lc 'bash "$HOME/.secret/Hyprland-Dots/config/hypr/UserScripts/weatherWrap.sh" >/dev/null 2>&1; pidof hyprlock || hyprlock' # refresh weather cache synchronously via weatherWrap.sh, then run hyprlock
# unlock_cmd = killall hyprlock # kills hyprlock when unlocking (this is always run when "loginctl unlock-session" is called)
before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep
after_sleep_cmd = hyprctl dispatch dpms on # turn of screen after sleep (not strictly necessary, but just in case)
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage