From fd823b8a0db959da5e75a2480fd49e6d712e983c Mon Sep 17 00:00:00 2001 From: izmyname <135810812+izmyname@users.noreply.github.com> Date: Tue, 5 Nov 2024 02:56:18 +0500 Subject: [PATCH] Add mention about possibility to start hypridle, hyprpaper and hyprpolkit with systemd services (#842) --- pages/Hypr Ecosystem/hypridle.md | 2 +- pages/Hypr Ecosystem/hyprpaper.md | 2 +- pages/Hypr Ecosystem/hyprpolkitagent.md | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/Hypr Ecosystem/hypridle.md b/pages/Hypr Ecosystem/hypridle.md index 1822dd9..964a296 100644 --- a/pages/Hypr Ecosystem/hypridle.md +++ b/pages/Hypr Ecosystem/hypridle.md @@ -9,7 +9,7 @@ hypridle is Hyprland's idle management daemon. 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 -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 diff --git a/pages/Hypr Ecosystem/hyprpaper.md b/pages/Hypr Ecosystem/hyprpaper.md index 53bc45f..1c5e0fa 100644 --- a/pages/Hypr Ecosystem/hyprpaper.md +++ b/pages/Hypr Ecosystem/hyprpaper.md @@ -121,7 +121,7 @@ preload another and set it to your monitor(s). It has the same syntax as ### Run at startup 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 diff --git a/pages/Hypr Ecosystem/hyprpolkitagent.md b/pages/Hypr Ecosystem/hyprpolkitagent.md index 06f0d8b..2d4ed76 100644 --- a/pages/Hypr Ecosystem/hyprpolkitagent.md +++ b/pages/Hypr Ecosystem/hyprpolkitagent.md @@ -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. (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 necessary to use `exec-once=/usr/lib64/libexec/hyprpolkitagent` instead. Other possible paths include `/usr/lib/hyprpolkitagent` and -`/usr/libexec/hyprpolkitagent`. \ No newline at end of file +`/usr/libexec/hyprpolkitagent`.