config.toml


Configuration File Structure

The configuration file uses a simple TOML format with sections for different components. Here’s a breakdown of the key sections:

[global]

[global]
watch-all = true
  • watch-all: Whether to monitor all available browsers (default: true)

[database]

[database]
db-path = "~/.local/share/gosuki/"
sync-interval = '4s'
  • db-path: Database storage location (supports shell expansions like ~ and $HOME)
  • sync-interval: Sync interval in seconds (default: ‘4s’)

[chrome]

[chrome]
[chrome.profile_options]
watch-all-profiles = false
profile = "Default"
  • watch-all-profiles: Whether to monitor all Chrome profiles
  • profile: Specific profile to use (default: “Default”)

[firefox]

[firefox]
[firefox.profile-options]
watch-all-profiles = true
profile = "default"
  • watch-all-profiles: Whether to monitor all Firefox profiles (default: true)
  • profile: Specific profile to use (default: “default”)

[html-autoimport]

[html-autoimport]
paths = ["$HOME/shares/bookmarks", "~/other/shared/bookmarks"]
  • paths: List of directories to scan for HTML bookmark files

[github-stars]

[github-stars]
github-token = "GITHUB_TOKEN"
sync-interval = '6h'
  • github-token: GitHub personal access token
  • sync-interval: Sync interval in seconds (default: ‘6h’)

[reddit]

[reddit]
client-id = ""
client-secret = ""
username = ""
password = ""
sync-interval = '24h'
include-likes = false
  • client-id/client-secret: Reddit API credentials
  • username/password: Reddit account credentials
  • sync-interval: Sync interval in seconds (default: ‘1h’)
  • include-likes: Whether to also save liked posts

Configuration Notes

  1. Path Expansion: Values like ~/.local/share/gosuki/ and $HOME/shares/bookmarks will be automatically expanded to their absolute paths.
  2. Module Configuration: Each module (browser, importer, etc.) has its own configuration section.
  3. Default Values: Unspecified options will use their built-in defaults.
  4. Editing: You can manually edit the config file after generation. Changes will take effect after restarting the daemon.