#!/bin/bash topic="" # export NTFY_USER="user:password" while true; do lastupdate=$(($(date -r ~/.config/sway/ntfy.sh.time +%s)-2)) ntfy sub --since "$lastupdate" "https://tomatenmhark.org/ntfy/$topic" \ 'notify-send "$t" "[$(date --date "@$time" "+%a, %H:%S")] $m" ; touch ~/.config/sway/ntfy.sh.time' done