diff options
Diffstat (limited to 'scripts/.local/bin/sweetdreams.sh')
-rwxr-xr-x | scripts/.local/bin/sweetdreams.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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!" |