From b61b58ce2c1371d6f904f108fa7feed3abfbe5c7 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 8 Apr 2026 13:18:14 +0900 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: dots Signed-off-by: Robert Günzler --- .config/rc/init.d/mako | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 .config/rc/init.d/mako (limited to '.config/rc/init.d/mako') diff --git a/.config/rc/init.d/mako b/.config/rc/init.d/mako new file mode 100755 index 0000000..40e8ec3 --- /dev/null +++ b/.config/rc/init.d/mako @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" + +description="Lightweight Wayland notification daemon" + +command="/usr/bin/mako" +supervisor=supervise-daemon +error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" + +depend() { + need dbus + provide notification-daemon +} + +start_pre() { + if [ -z "$WAYLAND_DISPLAY" ]; then + eerror "\$WAYLAND_DISPLAY unset, can't proceed." + return 1 + fi +} + +extra_started_commands="reload" +description_reload="Reload mako configuration using makoctl" +reload() { + makoctl reload + eend $? "Reloaded mako configuration" +} -- cgit 1.4.1