aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--dot_config/systemd/user/mako.service17
-rw-r--r--systemd-units/user.txt1
2 files changed, 18 insertions, 0 deletions
diff --git a/dot_config/systemd/user/mako.service b/dot_config/systemd/user/mako.service
new file mode 100644
index 0000000..caa256d
--- /dev/null
+++ b/dot_config/systemd/user/mako.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Lightweight notification daemon for Wayland
+Documentation=man:mako(1)
+PartOf=graphical-session.target
+After=graphical-session.target
+ConditionEnvironment=WAYLAND_DISPLAY
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.Notifications
+ExecStart=%h/.nix-profile/bin/mako
+ExecReload=%h/.nix-profile/bin/makoctl reload
+Restart=on-failure
+RestartSec=2s
+
+[Install]
+WantedBy=sway-session.target
diff --git a/systemd-units/user.txt b/systemd-units/user.txt
index 009b2b3..c0dfd0f 100644
--- a/systemd-units/user.txt
+++ b/systemd-units/user.txt
@@ -7,6 +7,7 @@ cliphist-image.service
cliphist-text.service
display-watcher.service
inhibridge.service
+mako.service
pass-secret-service.service
signal.service
swayidle.service