Skip to content

Instantly share code, notes, and snippets.

@sisimomo
sisimomo / actionnable-task-reminder.yaml
Created November 6, 2023 01:33
Actionnable Task Reminder - A Powerful Task Reminder Automation
blueprint:
name: Actionnable Task Reminder
description: |
# Send an actionable and snoozable reminder notification
Send a notification to the provided notification service to remind you a recurring task or event.
Supports full customizable notification, snooze options and recurrency control.
Support custom action when acknowledge the reminder.
#!/bin/bash
STATE=$(sudo tvservice --status)
if [[ $STATE == *"0x12000a"* ]]; then
echo "true"
else
echo "false"
fi
#!/usr/bin/env bash
# https://stackoverflow.com/a/53628882
reboot_countdown () {
local counter=$1
while [ 1 ]
do
if [ ${counter} -eq 0 ]
then
break