summaryrefslogtreecommitdiffstats
path: root/.scripts/datelog
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-08-07 13:50:23 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-08-07 13:50:23 -0400
commit92037e3f089cee8b29f916f6e730af63f070eac3 (patch)
treec55e99394bb9a39a7f859cbd99f174cb63a04a0a /.scripts/datelog
parent04a5d284a11cd51439aec2d8d43c0d1343a63ac9 (diff)
downloadeibhear-92037e3f089cee8b29f916f6e730af63f070eac3.tar.gz
eibhear-92037e3f089cee8b29f916f6e730af63f070eac3.tar.zst
eibhear-92037e3f089cee8b29f916f6e730af63f070eac3.zip
datelog script added
Diffstat (limited to '.scripts/datelog')
-rwxr-xr-x.scripts/datelog6
1 files changed, 6 insertions, 0 deletions
diff --git a/.scripts/datelog b/.scripts/datelog
new file mode 100755
index 0000000..af63604
--- /dev/null
+++ b/.scripts/datelog
@@ -0,0 +1,6 @@
+#!/bin/sh
+# I have a cronjob run this every minute to log time spend on the computer in
+# `~/.time` for each day. Gives estimate of daily NEEThood.
+
+date=`date '+%y-%m-%d'`
+echo $((`cat ~/.time/"$date"`+1)) > ~/.time/"$date"