swaywm/swayidle

before-sleep doesn't work rtcwake

EvilBoi123 opened this issue · 1 comments

In theory, swayidle should activate before-sleep command before sleep but in this case rtcwake doesn't work.

You can try:
sudo rtcwake -m mem -t $(date +%s -d 'today + 30sec')

to test it out

I believe rtcwake bypasses systemd. swayidle relies on systemd for before-sleep. I don't think we can do anything about this.