Re: Trying to get a custom runit service to notify me when battery is low (dunst)
Reply #2 –
The info from the x-session needs to be available to the service script.
So you might run this as a script at your x-session login:
echo 'export DBUS_SESSION_BUS_ADDRESS='$DBUS_SESSION_BUS_ADDRESS > /tmp/dsba
chmod +x /tmp/dsba
And in the service script run /tmp/dsba before sending out the notification
artist