From c8611dba945c1d612ad9b85f353af99fbafaed13 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 13 Aug 2021 02:38:28 +0300 Subject: feat(scripts): add sleep reminder --- scripts/.local/bin/sweetdreams.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/.local/bin/sweetdreams.sh (limited to 'scripts') diff --git a/scripts/.local/bin/sweetdreams.sh b/scripts/.local/bin/sweetdreams.sh new file mode 100755 index 0000000..d54dbaa --- /dev/null +++ b/scripts/.local/bin/sweetdreams.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Display natural wakeup time according to 90-minute rule and wish a good night :) +# Crontab: 0 23,0-5 * * * + +HOURS=$(date +%k) +notify-send \ + "It's getting late" \ + "Go to sleep right now, you will wake up at $(($HOURS+4)):30, $(($HOURS+6)) or $(($HOURS+7)):30 and finish whatever you are doing.\n Sweet dreams!" -- cgit v1.2.3