Add script and README

This commit is contained in:
2026-04-18 01:24:30 +01:00
parent 92231f823e
commit d6bbbecda9
2 changed files with 31 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# al: the activity logger
al is a simple CLI-based tool for logging your mouse and keyboard activity to a
file. This can be useful for time and sleep tracking.
## Installation
```{bash}
make
```
# Usage
Run the bash script `al.sh` to start al in a TMUX session.
```{bash}
./al.sh
```
Alternatively, run al directly:
```{bash}
./al | tee -a ~/.history/activity_log.csv
```

7
al.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/bash
if [ "$TMUX" ]; then
mkdir -p ~/.history
./al | tee -a ~/.history/activity_log.csv
fi
tmux new-session -d -s activity-logger $0
tmux set-option -t activity-logger remain-on-exit on