From 0c44a42cbdbc38811a39ca923e6aaab9fbd01037 Mon Sep 17 00:00:00 2001 From: inv2004 Date: Sat, 11 Mar 2023 01:21:17 +0300 Subject: [PATCH] +readme +onoff.config --- README.md | 4 +++- src/ttop/onoff.nim | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10259fa..c00fc4f 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,10 @@ cmd = "$HOME/bin/tel.sh" #### Config with all parameters described ```toml +light = false # set true for light term (default = false) + # [data] -# path = "/var/log/ttop" # custom storage path (default = if exists /var/log/ttop, else ~/.cache/ttop ) +# path = "/var/log/ttop" # custom storage path (default = if exists /var/log/ttop, else ~/.cache/ttop ) [[trigger]] # telegram example on_alert = true # execute trigger on alert (true if no other on_* provided) diff --git a/src/ttop/onoff.nim b/src/ttop/onoff.nim index 67de1bd..f634055 100644 --- a/src/ttop/onoff.nim +++ b/src/ttop/onoff.nim @@ -15,6 +15,8 @@ proc createToml(file: string) = echo "create ", file writeFile(file, """ +# light = false + # [data] # path = "/var/log/ttop" # custom storage path (default = if exists /var/log/ttop, else ~/.cache/ttop )