Guanran928 / flake

https://http.cat/301
https://git.ny4.dev/nyancat/flake
7 stars 0 forks source link

home: swayidle is not working properly #1

Closed Guanran928 closed 7 months ago

Guanran928 commented 7 months ago

swayidle.nix

Guanran928 commented 7 months ago

swayidle currently only turns off screen.

loginctl lock-session and systemctl suspend does not do anything.

Guanran928 commented 7 months ago

After replacing "swayidle"; with lib.getExe pkgs.swaylock-effects; swayidle currently only locks the screen now. (no turning off screen, no suspend)

Also, I see my screen blinks after unlocking my screen. (locked after timeout, might be sway turned off screen incorrectly?)

loginctl lock-session and systemctl suspend now locks my screen (before suspending).

Guanran928 commented 7 months ago

Hmm, seems like turning off screen and suspending is indeed happened after unlocking.

I also tried with using pkgs.swaylock instead of pkgs.swaylock-effects, no luck.

Guanran928 commented 7 months ago

Turn out I did not enable daemonize in swaylock.