nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

commit 8dbaccd5473e81e4e2e83e9dd7b4060148ffc1ff
parent c704b2e4a341a2f43065cbb23c291a5fa3ed3abf
Author: mtmn <miro@haravara.org>
Date:   Sat, 23 May 2026 00:47:32 +0200

void: add habit cron helper

Diffstat:
Ahosts/void/overlays/bin/habit | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/hosts/void/overlays/bin/habit b/hosts/void/overlays/bin/habit @@ -0,0 +1,9 @@ +#!/bin/sh +pid=$(pgrep -u "$(id -u)" -x river | head -1) + +if [ -n "$pid" ]; then + DBUS_SESSION_BUS_ADDRESS=$(tr '\0' '\n' </proc/"$pid"/environ | grep '^DBUS_SESSION_BUS_ADDRESS=' | cut -d= -f2-) + export DBUS_SESSION_BUS_ADDRESS +fi + +WAYLAND_DISPLAY=wayland-1 DISPLAY=:0 /usr/sbin/notify-send "$@"