From 76f121236cbf17821362d09eefdee6e0771f0a91 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Wed, 17 Apr 2024 12:33:21 +0200 Subject: Add some convenient scripts for pinging me --- bin/pingme.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bin/pingme.m4 (limited to 'bin/pingme.m4') diff --git a/bin/pingme.m4 b/bin/pingme.m4 new file mode 100644 index 0000000..5eea292 --- /dev/null +++ b/bin/pingme.m4 @@ -0,0 +1,15 @@ +#!/bin/sh +set -e +m4_ifelse(DT_GOTIFY_URL, `', `', `m4_dnl +GOTIFY_URL="DT_GOTIFY_URL/message?token=DT_GOTIFY_TOKEN" +')m4_dnl +MESSAGE="Done" +if [ "$#" = "1" ]; then + MESSAGE="$1" +fi + +tput bel +tmux display-message "${MESSAGE}" +m4_ifelse(DT_GOTIFY_URL, `', `', `m4_dnl +GOTIFY_RES=$(curl "$GOTIFY_URL" -F "title=Pingme" -F "message=$MESSAGE" -F "priority=5" 2> /dev/null) +')m4_dnl -- cgit v1.2.3