From 30fe9ff3f95365c9fa68cf3f3e0255605d25b417 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Fri, 16 May 2025 12:49:29 -0400 Subject: [PATCH] Moved sway notification center to a systemd service --- .../hypr-hydro-os/hyprland.conf.d/autostart.conf | 2 +- .../user/sway-notification-center.service | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 files/systemd/user/sway-notification-center.service diff --git a/files/system/usr/share/hypr-hydro-os/hyprland.conf.d/autostart.conf b/files/system/usr/share/hypr-hydro-os/hyprland.conf.d/autostart.conf index a044977..f712a44 100644 --- a/files/system/usr/share/hypr-hydro-os/hyprland.conf.d/autostart.conf +++ b/files/system/usr/share/hypr-hydro-os/hyprland.conf.d/autostart.conf @@ -11,7 +11,7 @@ $polkit = /usr/libexec/kf6/polkit-kde-authentication-agent-1 exec-once = $polkit # notification system -exec-once = /usr/bin/swaync +# exec-once = /usr/bin/swaync # unlock kwallet # exec-once = /usr/share/hyprland/scripts/load-kwallet.sh diff --git a/files/systemd/user/sway-notification-center.service b/files/systemd/user/sway-notification-center.service new file mode 100644 index 0000000..9fa6d5d --- /dev/null +++ b/files/systemd/user/sway-notification-center.service @@ -0,0 +1,16 @@ +[Unit] +Description=A simple notification daemon with a GTK gui for notifications and the control center. +Documentation=man:swaync(1) +# order startup after WM +After=graphical-session.target + +[Service] +Type=exec +# Repurpose XDG Autostart filtering +ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" "" +ExecStart=/usr/bin/swaync +Restart=on-failure +Slice=app-graphical.slice + +[Install] +WantedBy=graphical-session.target \ No newline at end of file