️ perf(wakatime): use script to cache wakatime stats

Refactor wakatime lualine component to use an external script to cache the wakatime stats
This commit is contained in:
2024-08-03 22:46:21 -04:00
parent f625c215a7
commit 1cb641b326
2 changed files with 26 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Update the cache file with the Wakatime CLI command
while true; do
~/.wakatime/wakatime-cli --today >~/.cache/wakatime_cache.txt 2>/dev/null
sleep 60
done