AShat

Authored Comments

Hi!
Thank you for you article!
For Gentoo+Fluxbox It may need extra steps to make your function work:
1) Create file e.g. notify_user:
#!/usr/bin/env bash
cd "$HOME/.dbus/session-bus"
dbus_file="$( ls -t1 | head -n 1 )"
export DBUS_SESSION_BUS_ADDRESS="$( source "$dbus_file"; echo $DBUS_SESSION_BUS_ADDRESS )"
export DISPLAY=":0.0"
notify-send Reminder "$1" -u critical
#do not forget to make it exectutable: chmod +x
#for addition information and discussion see #https://forums.gentoo.org/viewtopic-t-956982-start-0.html
2) in function remind change line
echo "notify-send '$MESSAGE' 'Reminder' -u critical" | at $TIME 2>/dev/null
to
echo "doas -u shat /anywhere/notify_user '$MESSAGE'" | at $TIME 2>/dev/null