configuration.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. type = SQLite
  23. filename = <PWMAN_CONFIG>/pwman.db
  24. Following is a table describing the parameters and their meaning:
  25. =========== ===========
  26. **Section** *Readline*
  27. ----------- -----------
  28. *Global*
  29. history path to the file containing history of commands typed
  30. ----------- -----------
  31. **Section** *Global*
  32. ----------- -----------
  33. save True or False - whether the Configuring file should be saved
  34. ----------- -----------
  35. colors yes or no - If set to *no*, no colors used in output. This is useful for breil terminals.
  36. ----------- -----------
  37. cp_timeout Number of seconds before the clipboard is erased.
  38. ----------- -----------
  39. cls_timeout Number of seconds before the screen is clean after a print.
  40. ----------- -----------
  41. umask The umask in which database files are written.
  42. ----------- -----------
  43. xsel path to the xsel binary (Linux\BSD only)
  44. ----------- -----------
  45. **Section** *Database*
  46. ----------- -----------
  47. type SQLite (future versions will re-include support for MySQL and PostGRESQL)
  48. ----------- -----------
  49. filename path to the SQLite Database file
  50. =========== ===========