Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added systemd service #45

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Added systemd service #45

merged 2 commits into from
Apr 12, 2024

Conversation

alba4k
Copy link
Contributor

@alba4k alba4k commented Apr 11, 2024

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 of killall 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 and systemd/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.

@vaxerski vaxerski requested a review from fufexan April 11, 2024 23:07
CMakeLists.txt Outdated Show resolved Hide resolved
systemd/hypridle.service.in Outdated Show resolved Hide resolved
@alba4k
Copy link
Contributor Author

alba4k commented Apr 12, 2024

@fufexan how about now

@fufexan fufexan merged commit dad6ac1 into hyprwm:main Apr 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants