hyprwm / hypridle

Hyprland's idle daemon
BSD 3-Clause "New" or "Revised" License
320 stars 16 forks source link

Not initiating hyprlock #58

Closed ashish-kus closed 1 month ago

ashish-kus commented 1 month ago

Hyprlock is not getting triggered if the listener time is more than ~40 not sure to be exact but fails to work on 100 and 240

general {
    lock_cmd = hyprlock
    unlock_cmd = killall -q -s SIGUSR1 hyprlock
    before_sleep_cmd = loginctl lock-session 
    ignore_dbus_inhibit = false
}

listener {
    timeout = 240
    on-timeout = loginctl lock-session
}

listener {
    timeout = 300
    on-timeout = sleep 1 && hyprctl dispatch dpms off
    on-resume = sleep 1 && hyprctl dispatch dpms on
}

listener {
    timeout = 420
    on-timeout = systemctl suspend
}

# vim: commentstring=#\ %s

if lock timeout is 10 then it works. but fails if the timeout is 240. (Suspend works, DPMS works but locking does not work)

ashish-kus commented 1 month ago

I found a workaround wherever I call hyprlock i will call pidof hyprlock || hyprlock or just install hyprlock-git source