level 4
在文件夹~/.config/systemd/user/创建一个名为hyprland-session.target的文件并包含以下内容(参考第二章图片):
[Unit]
Description=Hyprland session target
BindsTo=graphical-session.target
Wants=xdg-desktop-autostart.target
然后在你的Hyprland配置文件添加一项exec-once = systemctl --user start hyprland-session.target,如果想在Hyprland退出会话时结束target,就再添加一项exec-shutdown = systemctl stop --user hyprland-session.target到配置文件。


