From 2d9a99e3f08ba5b01da9f9a1c76b566a4cda7bf1 Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Fri, 13 Dec 2024 22:52:33 +0100
Subject: [PATCH] Revert .wakatime.cfg to a template

---
 .bin/.e                                                     | 2 +-
 .config/wakatime/{.wakatime.cfg => .wakatime.cfg##template} | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 rename .config/wakatime/{.wakatime.cfg => .wakatime.cfg##template} (93%)

diff --git a/.bin/.e b/.bin/.e
index a2805f0..6fa485a 100755
--- a/.bin/.e
+++ b/.bin/.e
@@ -30,7 +30,7 @@ declare -A mapper=(
 	["sway.d"]="$HOME/.config/sway/config.d"
 	["sxhkd"]="$HOME/.config/sxhkd/sxhkdrc"
 	["vim"]="$HOME/.config/vim/vimrc"
-	["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg"
+	["wakatime"]="$HOME/.config/wakatime/.wakatime.cfg##template"
 	["wakatime-project"]="./.wakatime-project"
 	["waybar"]="$HOME/.config/waybar/"
 	["xprofile"]="$HOME/.xprofile"
diff --git a/.config/wakatime/.wakatime.cfg b/.config/wakatime/.wakatime.cfg##template
similarity index 93%
rename from .config/wakatime/.wakatime.cfg
rename to .config/wakatime/.wakatime.cfg##template
index ad5d57a..d0b8e8b 100644
--- a/.config/wakatime/.wakatime.cfg
+++ b/.config/wakatime/.wakatime.cfg##template
@@ -10,6 +10,7 @@ exclude =
     ^TAG_EDITMSG$
     ^/tmp/
 exclude_unknown_project = true
+api_key = {{ env.WAKATIME_API_KEY }}
 [projectmap]
 projects/emgauwa/pkl = emgauwa-pkl
 projects/emgauwa/tests = emgauwa-tests