aboutsummaryrefslogtreecommitdiff
path: root/.scripts/whatamidoing
diff options
context:
space:
mode:
authorMarvin Borner2023-05-17 17:45:18 +0200
committerMarvin Borner2023-05-17 17:53:44 +0200
commitb96beb25dcb0511f38c13b07c44cc929d5fd53ad (patch)
treed4c3a9cfed6f9776ad27e79b1cff1c6838a7f9c4 /.scripts/whatamidoing
parenta8a6c3a400174cf476ec8e75bb2e5a5b0afb34da (diff)
Sync
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