diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-08-13 02:38:28 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-08-13 02:38:28 +0300 |
commit | c8611dba945c1d612ad9b85f353af99fbafaed13 (patch) | |
tree | 0f85f37d93f88060c506f0b92881360a4579a04e /scripts | |
parent | 0cef5c8f9790a1fd314cf678e4d623d2286881e6 (diff) | |
download | dotfiles-c8611dba945c1d612ad9b85f353af99fbafaed13.tar.gz |
feat(scripts): add sleep reminder
Diffstat (limited to 'scripts')
-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!" |