Skip to content

Commit

Permalink
+readme +onoff.config
Browse files Browse the repository at this point in the history
  • Loading branch information
inv2004 committed Mar 10, 2023
1 parent e7b9cbd commit 0c44a42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/ttop/onoff.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 0c44a42

Please sign in to comment.