From 2bed859b2d0b964fc3ee65e6d5734a2cfb4f10c9 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 18:09:50 +0200 Subject: [PATCH 1/6] fix: create hyprland user service --- build_files/02_hyprland.sh | 4 +++- build_files/hyprland.service | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 build_files/hyprland.service diff --git a/build_files/02_hyprland.sh b/build_files/02_hyprland.sh index 0912b07..dfb9805 100755 --- a/build_files/02_hyprland.sh +++ b/build_files/02_hyprland.sh @@ -16,4 +16,6 @@ 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 daemon-reload +systemctl --global enable hyprland.service \ No newline at end of file diff --git a/build_files/hyprland.service b/build_files/hyprland.service new file mode 100644 index 0000000..70a1f46 --- /dev/null +++ b/build_files/hyprland.service @@ -0,0 +1,7 @@ +[Unit] +Description=Start Hyprland as User + +[Service] +Type=exec +ExecStartPre=/usr/bin/hyprland --verify-config +ExecStart=/usr/bin/hyprland \ No newline at end of file From 1a7d7e645df2e5226f0b5c0e5789ee9ef003039a Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 18:18:22 +0200 Subject: [PATCH 2/6] fix: remove daemon-reload --- build_files/02_hyprland.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build_files/02_hyprland.sh b/build_files/02_hyprland.sh index dfb9805..db901af 100755 --- a/build_files/02_hyprland.sh +++ b/build_files/02_hyprland.sh @@ -17,5 +17,4 @@ dnf5 install -y \ foot cp /ctx/hyprland.service /usr/lib/systemd/user/hyprland.service -systemctl daemon-reload systemctl --global enable hyprland.service \ No newline at end of file From 9682e2c1b37ef4448d4cd6a08ee171a69eba513d Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 19:27:57 +0200 Subject: [PATCH 3/6] fix: make hyprland feel wanted --- build_files/hyprland.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_files/hyprland.service b/build_files/hyprland.service index 70a1f46..83d49d6 100644 --- a/build_files/hyprland.service +++ b/build_files/hyprland.service @@ -4,4 +4,7 @@ Description=Start Hyprland as User [Service] Type=exec ExecStartPre=/usr/bin/hyprland --verify-config -ExecStart=/usr/bin/hyprland \ No newline at end of file +ExecStart=/usr/bin/hyprland + +[Install] +WantedBy=user@.service From 33f95ae982dd19afa924f0515049bb0543cc0a45 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 19:49:19 +0200 Subject: [PATCH 4/6] fix: rename to hyprland@.service --- build_files/02_hyprland.sh | 4 ++-- build_files/{hyprland.service => hyprland@.service} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename build_files/{hyprland.service => hyprland@.service} (100%) diff --git a/build_files/02_hyprland.sh b/build_files/02_hyprland.sh index db901af..ad54f32 100755 --- a/build_files/02_hyprland.sh +++ b/build_files/02_hyprland.sh @@ -16,5 +16,5 @@ dnf5 install -y \ SwayNotificationCenter-git \ foot -cp /ctx/hyprland.service /usr/lib/systemd/user/hyprland.service -systemctl --global enable hyprland.service \ No newline at end of file +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 similarity index 100% rename from build_files/hyprland.service rename to build_files/hyprland@.service From 68b09d9e40bfd9b49d9b959471540728b4422f71 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:52:19 +0200 Subject: [PATCH 5/6] fix: add hyprland to app.slice --- build_files/02_hyprland.sh | 4 ++-- build_files/{hyprland@.service => hyprland.service} | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) rename build_files/{hyprland@.service => hyprland.service} (80%) diff --git a/build_files/02_hyprland.sh b/build_files/02_hyprland.sh index ad54f32..c793489 100755 --- a/build_files/02_hyprland.sh +++ b/build_files/02_hyprland.sh @@ -16,5 +16,5 @@ dnf5 install -y \ SwayNotificationCenter-git \ foot -cp /ctx/hyprland@.service /usr/lib/systemd/user/hyprland@.service -systemctl --global enable hyprland@.service +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 similarity index 80% rename from build_files/hyprland@.service rename to build_files/hyprland.service index 83d49d6..e1a06dd 100644 --- a/build_files/hyprland@.service +++ b/build_files/hyprland.service @@ -5,6 +5,4 @@ Description=Start Hyprland as User Type=exec ExecStartPre=/usr/bin/hyprland --verify-config ExecStart=/usr/bin/hyprland - -[Install] -WantedBy=user@.service +Slice=app.slice From af932a53aa4300113090e7709b6aed0c189974f2 Mon Sep 17 00:00:00 2001 From: ManInDark <61268856+ManInDark@users.noreply.github.com> Date: Wed, 1 Apr 2026 21:17:56 +0200 Subject: [PATCH 6/6] fix: add hyprland to default.target --- build_files/hyprland.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_files/hyprland.service b/build_files/hyprland.service index e1a06dd..cb05693 100644 --- a/build_files/hyprland.service +++ b/build_files/hyprland.service @@ -5,4 +5,6 @@ Description=Start Hyprland as User Type=exec ExecStartPre=/usr/bin/hyprland --verify-config ExecStart=/usr/bin/hyprland -Slice=app.slice + +[Install] +WantedBy=default.target