From 17fab0d9c8bb7929e82ed1bc3cd2e57ca377d0b5 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Mon, 11 May 2020 09:28:06 +0200 Subject: [PATCH] fix https://github.com/osa1/tiny/issues/192 --- TODO | 3 +++ group_vars/all.yml | 1 + roles/tiny/templates/config.yml.j2 | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 82e1b45..1d3fd67 100644 --- a/TODO +++ b/TODO @@ -27,6 +27,9 @@ - wob styling : https://github.com/francma/wob/issues/38 - wofi issues : https://todo.sr.ht/~scoopta/wofi +# IMPROVMENTS +- dynamic username: sed 's/user/{{ user }}/g' and use templating + #TEST - repair travis runs - wf-recorder diff --git a/group_vars/all.yml b/group_vars/all.yml index dc4c865..78e2dc3 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -1,2 +1,3 @@ --- font: jetbrains mono +user: user diff --git a/roles/tiny/templates/config.yml.j2 b/roles/tiny/templates/config.yml.j2 index 1cf1be1..8c5d130 100644 --- a/roles/tiny/templates/config.yml.j2 +++ b/roles/tiny/templates/config.yml.j2 @@ -35,7 +35,7 @@ defaults: tls: false # Where to put log files -log_dir: '~/.tiny_logs' +log_dir: '/home/{{ user }}/.tiny_logs' # How to show timestamps. Should be a valid strftime() format string. Run `man # strftime` in your shell for strftime format specification.