diff --git a/build_files/02_hyprland.sh b/build_files/02_hyprland.sh index 0912b07..c793489 100755 --- a/build_files/02_hyprland.sh +++ b/build_files/02_hyprland.sh @@ -16,4 +16,5 @@ dnf5 install -y \ SwayNotificationCenter-git \ foot -echo 'if [[ $(ps aux | grep hyprland | wc -l) -eq 1 ]]; then cd $HOME && echo "launch hyprland?" && read && systemd-run --user --service-type=exec --unit=hyprland --description="hyprland start service" hyprland ; fi' >> /etc/profile.d/launch_hyprland.sh +cp /ctx/hyprland.service /usr/lib/systemd/user/hyprland.service +systemctl --global enable hyprland.service diff --git a/build_files/hyprland.service b/build_files/hyprland.service new file mode 100644 index 0000000..cb05693 --- /dev/null +++ b/build_files/hyprland.service @@ -0,0 +1,10 @@ +[Unit] +Description=Start Hyprland as User + +[Service] +Type=exec +ExecStartPre=/usr/bin/hyprland --verify-config +ExecStart=/usr/bin/hyprland + +[Install] +WantedBy=default.target