From f86c5a643671acbff51592fbb593933d7de02447 Mon Sep 17 00:00:00 2001 From: Sam Boysel Date: Tue, 31 May 2022 18:10:10 -0700 Subject: [PATCH] adds contrib dir for user contributed scripts --- README.md | 2 ++ contrib/.gitkeep | 0 contrib/bell | 3 +++ contrib/pomonag | 5 +++++ 4 files changed, 10 insertions(+) create mode 100644 contrib/.gitkeep create mode 100755 contrib/bell create mode 100755 contrib/pomonag diff --git a/README.md b/README.md index 3a1f32b..e1ea9fc 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ if [ "$POMO_STATE" == "COMPLETE" ] ; then fi ``` +See the `contrib` directory for user contributed scripts for use with `onEvent`. + ## Integrations By default pomo will setup a Unix socket and serve it's status there. diff --git a/contrib/.gitkeep b/contrib/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/contrib/bell b/contrib/bell new file mode 100755 index 0000000..b4c6e8f --- /dev/null +++ b/contrib/bell @@ -0,0 +1,3 @@ +#!/bin/sh + +echo -e '\e' diff --git a/contrib/pomonag b/contrib/pomonag new file mode 100755 index 0000000..4259c6e --- /dev/null +++ b/contrib/pomonag @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$POMO_STATE" == "BREAKING" ] ; then + swaynag -m "It's time to take a break!" +fi