Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hypridle can now be started and managed using systemd with
systemctl --user enable --now hypridle.service
This is useful as it allows an easier way to manage services that, like this, always run in the background. This way
systemctl start/stop/restart
commands can be used instead ofkillall hypridle / nohup hypridle
or similar. I slightly updated the README to mention this different usage possibility.Before this is ready to be merged, though, I'd need some feedback on the way I am currently configuring and installing the service file (see
CMakeLists.txt
andsystemd/hypridle.service.in
). The configuration part is not currently working though, I'm not really sure what I should be using to point at the directory the hypridle executable can be found in (usually/usr/local/bin
if no extra cmdline args are given to smake).Also, LMK if anything else should be changed, of course.