From 46148592486d353d669a88d7755bd1a07dfae410 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Fri, 12 Jun 2026 16:18:26 -0400 Subject: [PATCH] fix: fix systemd unit --- lua/modules/swaync.lua | 2 +- lua/modules/swayosd.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/modules/swaync.lua b/lua/modules/swaync.lua index 3b4ca2a..26cfe1c 100644 --- a/lua/modules/swaync.lua +++ b/lua/modules/swaync.lua @@ -7,7 +7,7 @@ local M = {} local function start_swaync() if settings["systemd"] then local unit = "swaync.service" - local source = CONFIG_HOME .. "hypr/systemd/" .. unit + local source = HYPR .. "/systemd/" .. unit if systemd.ensure_user_unit(unit, source) then hl.exec_cmd("systemctl --user start swaync") diff --git a/lua/modules/swayosd.lua b/lua/modules/swayosd.lua index 00768fa..de6aac8 100644 --- a/lua/modules/swayosd.lua +++ b/lua/modules/swayosd.lua @@ -8,7 +8,7 @@ local M = {} local function start_swayosd() if settings["systemd"] then local unit = "swayosd.service" - local source = CONFIG_HOME .. "hypr/systemd/" .. unit + local source = HYPR .. "/systemd/" .. unit if systemd.ensure_user_unit(unit, source) then hl.exec_cmd("systemctl --user start swayosd")