Add mention about possibility to start hypridle, hyprpaper and hyprpolkit with systemd services (#842)

This commit is contained in:
izmyname 2024-11-05 02:56:18 +05:00 committed by GitHub
parent 4b9e1dae5c
commit fd823b8a0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -9,7 +9,7 @@ hypridle is Hyprland's idle management daemon.
Configuration is done via the config file at `~/.config/hypr/hypridle.conf`. A Configuration is done via the config file at `~/.config/hypr/hypridle.conf`. A
config file is required; hypridle won't run without one. To run hypridle at config file is required; hypridle won't run without one. To run hypridle at
startup, edit `hyprland.conf` and add: `exec-once = hypridle`. startup, edit `hyprland.conf` and add: `exec-once = hypridle`. If Hyprland is started as a systemd service, you can use `systemctl --user enable --now hypridle.service`.
### General ### General

View file

@ -121,7 +121,7 @@ preload another and set it to your monitor(s). It has the same syntax as
### Run at startup ### Run at startup
To run hyprpaper at startup edit `hyprland.conf` and add: `exec-once = To run hyprpaper at startup edit `hyprland.conf` and add: `exec-once =
hyprpaper`. hyprpaper`. If you start Hyprland as a systemd service, you can also use `systemctl --user enable --now hyprpaper.service` command.
### Misc options ### Misc options

View file

@ -14,10 +14,12 @@ or use a different agent, e.g. [KDE's one](https://github.com/KDE/polkit-kde-age
Add `exec-once = systemctl --user start hyprpolkitagent` to your Hyprland config and restart hyprland. Add `exec-once = systemctl --user start hyprpolkitagent` to your Hyprland config and restart hyprland.
(obviously change that to whatever you are using if you are not using the hypr one) (obviously change that to whatever you are using if you are not using the hypr one)
If Hyprland is started as a systemd service, you can autostart for polkit with the command `systemctl --user enable --now hyprpolkitagent.service`.
On distributions that use a different init system, such as Gentoo, it may be On distributions that use a different init system, such as Gentoo, it may be
necessary to use necessary to use
`exec-once=/usr/lib64/libexec/hyprpolkitagent` instead. `exec-once=/usr/lib64/libexec/hyprpolkitagent` instead.
Other possible paths include Other possible paths include
`/usr/lib/hyprpolkitagent` and `/usr/lib/hyprpolkitagent` and
`/usr/libexec/hyprpolkitagent`. `/usr/libexec/hyprpolkitagent`.