configuration.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Configuring Pwman3
  2. ==================
  3. By default Pwman3 will read the configuration file from the following path::
  4. ~/.pwman/config
  5. This is the ``PWMAN_CONFIG`` following.
  6. You can override this by giving the ``-c <Config File>`` at the commnad line
  7. when starting Pwman3.
  8. The configuration file has the following structure::
  9. [Section]
  10. Option = Value
  11. The following is an example default config file::
  12. [Readline]
  13. history = <PWMAN_CONFIG>/history
  14. [Global]
  15. save = True
  16. colors = yes
  17. cp_timeout = 5
  18. umask = 0100
  19. cls_timeout = 10
  20. xsel = /usr/bin/xsel
  21. [Database]
  22. filename = sqlite:///<PWMAN_CONFIG>/pwman.db`
  23. Following is a table describing the parameters and their meanings:
  24. =========== ===========
  25. **Section** *Readline*
  26. ----------- -----------
  27. *Global*
  28. history path to the file containing history of commands typed
  29. ----------- -----------
  30. **Section** *Global*
  31. ----------- -----------
  32. save True or False - whether the Configuring file should be saved
  33. ----------- -----------
  34. colors yes or no - If set to *no*, no colors used in output. This is useful for breil terminals.
  35. ----------- -----------
  36. cp_timeout Number of seconds before the clipboard is erased.
  37. ----------- -----------
  38. cls_timeout Number of seconds before the screen is clean after a print.
  39. ----------- -----------
  40. umask The umask in which database and configuration files are written.
  41. ----------- -----------
  42. xsel path to the xsel binary (Linux\BSD only)
  43. ----------- -----------
  44. **Section** *Database*
  45. ----------- -----------
  46. dburi Database URI conforming to `RFC3986`_. SQLite, Postgreql and
  47. MySQL are currently supported.
  48. SQLite example: `sqlite:///path/to/your/db`
  49. Postgreql example: `postgresql://<user>:<pass>@<host[:port]>/<database>`
  50. MySQL example: `mysql://<user>:<pass>@<host[:port]>/<database>`
  51. =========== ===========
  52. .. _RFC3986: http://www.ietf.org/rfc/rfc3986.txt