hyprwm / hypridle

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

on-timeout runs over and over again #65

Closed se7en-x230 closed 5 months ago

se7en-x230 commented 5 months ago

listener { timeout = 5 # in seconds on-timeout = hyprlock.sh # command to run when timeout has passed

I see that the script runs ever 5 second and not only once. What am I doing wrong?

fufexan commented 5 months ago

That's how it's supposed to work, if you are idle (no mouse movement/keys pressed/videos playing).

se7en-x230 commented 5 months ago

okey I thought the command runs once ... Why would it run over and over again?

fufexan commented 5 months ago

It is expected that once you're idle for 5 seconds, it will run. If you're not idle but it still runs, that's an issue.

se7en-x230 commented 5 months ago

must be my script

I replaced it with now="$(date +"%T")" echo "Current time : $now" >> $HOME/log

and that executes only once.

vaxerski commented 5 months ago

it should run once and never again until you are back from idle and idle again for 5 seconds iirc, but it would suggest a hyprland bug rather than hypridle if thats not the case

if replacing the script fixes it, its likely some command that triggers hyprland to go "oh, you're back"