aboutsummaryrefslogtreecommitdiff
path: root/.scripts/whatamidoing
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/whatamidoing')
-rwxr-xr-x.scripts/whatamidoing8
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/whatamidoing b/.scripts/whatamidoing
new file mode 100755
index 0000000..3c65677
--- /dev/null
+++ b/.scripts/whatamidoing
@@ -0,0 +1,8 @@
+#!/bin/sh
+# arbtt files have limited read access (good!) ==> write current tag to file using cronjob
+
+if [ "$1" = "sync" ]; then
+ /home/melvin/.cabal/bin/arbtt-stats --logfile=/home/melvin/.arbtt/capture.log --categorizefile=/home/melvin/.arbtt/categorize.cfg -f '$sampleage < 0:01' | tail -n 1 | awk '{print $1}' >/home/melvin/.arbtt/current
+else
+ cat /home/melvin/.arbtt/current
+fi