Moved sway notification center to a systemd service
This commit is contained in:
@@ -11,7 +11,7 @@ $polkit = /usr/libexec/kf6/polkit-kde-authentication-agent-1
|
|||||||
exec-once = $polkit
|
exec-once = $polkit
|
||||||
|
|
||||||
# notification system
|
# notification system
|
||||||
exec-once = /usr/bin/swaync
|
# exec-once = /usr/bin/swaync
|
||||||
|
|
||||||
# unlock kwallet
|
# unlock kwallet
|
||||||
# exec-once = /usr/share/hyprland/scripts/load-kwallet.sh
|
# exec-once = /usr/share/hyprland/scripts/load-kwallet.sh
|
||||||
|
16
files/systemd/user/sway-notification-center.service
Normal file
16
files/systemd/user/sway-notification-center.service
Normal file
@@ -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
|
Reference in New Issue
Block a user