configuration.rst 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Configuring Pwman3
  2. ==================
  3. By default Pwman3 will read the configuration file from the following path on Unix like systems::
  4. ~/.config/pwman/config
  5. On windows the configuration is found in ``%APPDATA/pwman/%``
  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_DATA_DIR>/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. lock_timeout = 60
  22. [Database]
  23. filename = sqlite:///<PWMAN_DATA_DIR>/pwman.db`
  24. [Updater]
  25. supress_version_check = no
  26. client_info = ee5cd64310568736b971e3fb7c7064a4459b99a2b78672515fd0f06c82f65d5
  27. On Windows ``PWMAN_DATA_DIR`` is ``%APPDATA/pwman/%`` on Unix like systems it is
  28. ``~/.local/share/pwman/``.
  29. Following is a table describing the parameters and their meanings:
  30. ===================== ===========
  31. **Section** *Readline*
  32. --------------------- -----------
  33. *Global*
  34. history path to the file containing history of commands typed
  35. --------------------- -----------
  36. **Section** *Global*
  37. --------------------- -----------
  38. save True or False - whether the Configuring file should be saved
  39. --------------------- -----------
  40. colors yes or no - If set to *no*, no colors used in output. This is useful for breil terminals.
  41. --------------------- -----------
  42. cp_timeout Number of seconds before the clipboard is erased.
  43. --------------------- -----------
  44. cls_timeout Number of seconds before the screen is clean after a print. Set to 0 to disable.
  45. --------------------- -----------
  46. umask The umask in which database and configuration files are written.
  47. --------------------- -----------
  48. xsel path to the xsel binary (Linux\BSD only).
  49. --------------------- -----------
  50. lock_timeout set the period (in secods) after which the database is locked.
  51. --------------------- -----------
  52. **Section** *Database*
  53. --------------------- -----------
  54. dburi Database URI conforming to `RFC3986`_. SQLite, Postgreql,
  55. MySQL and MongoDB are currently supported.
  56. SQLite example: `sqlite:///path/to/your/db`
  57. Postgreql example: `postgresql://<user>:<pass>@<host[:port]>/<database>`
  58. MySQL example: `mysql://<user>:<pass>@<host[:port]>/<database>`
  59. MongoDB example: `mongodb://<user>:<pass>@<host[:port]>/<database>`
  60. --------------------- -----------
  61. **Section** *Updater*
  62. --------------------- -----------
  63. supress_version_check yes or no - check for newer versions of pwman3
  64. --------------------- -----------
  65. client_info sha256 digest of host name and username, used for identifying the client
  66. ===================== ===========
  67. .. _RFC3986: http://www.ietf.org/rfc/rfc3986.txt