There is a new pull request by travankor against master on the void-packages repository https://github.com/travankor/void-packages swayidle https://github.com/void-linux/void-packages/pull/12897 swayidle: actually detect elogind. A patch file from https://github.com/void-linux/void-packages/pull/12897.patch is attached