Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
KHARD.CONF(5)			     khard			 KHARD.CONF(5)

       khard.conf - configuration file for khard

       The config file for khard is a plain text file with an ini-like syntax.
       Many options have a corresponding command line option.  The only	manda-
       tory  section in	the config file	is the definition of the available ad-
       dress books.

       The file	is looked up at	$XDG_CONFIG_HOME/khard/khard.conf. If the  en-
       vironment  variable $XDG_CONFIG_HOME is unset ~/.config/	is used	in its

       The location can	be changed with	the environment	variable $KHARD_CONFIG
       or the command line option -c (which takes precedence).

       The  syntax of the config file is ini-style dialect.  It	is parsed with
       the configobj library.  The precise definition of the corresponding ini
       syntax		   can		   be		  found		    at

       It  supports  sections  marked with square brackets and nested sections
       with more square	brackets.  Each	section	 contains  several  keys  with
       values  delimited  by  equal  signs.   The  values  are	typed and type

       The config file consists	of these four sections:

	      This section contains several subsections,  but  at  least  one.
	      Each  subsection	can  have  an arbitrary	name which will	be the
	      name of an addressbook known to khard.  Each  of	these  subsec-
	      tions  must have a path key with the path	to the folder contain-
	      ing the vcard files for that addressbook.	 The path  value  sup-
	      ports  environment  variables and	tilde prefixes.	 khard expects
	      the vcard	files to hold only one VCARD record each and end in  a
	      .vcf extension.

	      This section allows one to configure some	general	features about
	      khard.  The following keys are available in this section:

	      o	debug: a boolean indication weather the	logging	 level	should
		be  set	to debug by default (same effect as the	--debug	option
		on the command line)

	      o	default_action:	the default action/subcommand to  use  if  the
		first  non option argument does	not match any of the available

	      o	editor:	the text editor	to use to edit address	book  entries,
		if not given $EDITOR will be used

	      o	merge_editor: a	command	used to	merge two cards	interactively,
		if not given, $MERGE_EDITOR will be used

       contact table
	      This section is used to configure	 the  behaviour	 of  different
	      output listings of khard.	 The following keys are	available:

	      o	display:  which	 part of the name to use in listings; this can
		be one of first_name, last_name	or formatted_name

	      o	group_by_addressbook: weather or not to	group contacts by  ad-
		dress book in listings

	      o	localize_dates:	 weather  to localize dates or to use ISO date

	      o	preferred_email_address_type: labels  of  email	 addresses  to

	      o	preferred_phone_number_type:  labels  of  telephone numbers to

	      o	reverse: weather to reverse the	order of contact  listings  or

	      o	show_nicknames:	weather	to show	nick names

	      o	show_uids: weather to show uids

	      o	sort: field by which to	sort contact listings


	      o	private_objects:  a  list  of  strings,	these are the names of
		private	vCard fields (starting with X-)	 that will  be	loaded
		and displayed by khard

	      o	search_in_source_files:	 weather  to search in the vcard files
		before parsing them in order to	speed up searches

	      o	skip_unparsable: weather to skip unparsable vcards,  otherwise
		khard exits on the first unparsable card it encounters

	      o	preferred_version:  the	preferred vcard	version	to use for new

       This is the example config file:

	  # example configuration file for khard version > 0.14.0
	  # place it under ~/.config/khard/khard.conf
	  # This file is parsed	by the configobj library.  The syntax is described at

	  path = ~/.contacts/family/
	  path = ~/.contacts/friends/

	  debug	= no
	  default_action = list
	  # These are either strings or	comma seperated	lists
	  editor = vim,	-i, NONE
	  merge_editor = vimdiff

	  [contact table]
	  # display names by first or last name: first_name / last_name	/ formatted_name
	  display = first_name
	  # group by address book: yes / no
	  group_by_addressbook = no
	  # reverse table ordering: yes	/ no
	  reverse = no
	  # append nicknames to	name column: yes / no
	  show_nicknames = no
	  # show uid table column: yes / no
	  show_uids = yes
	  # sort by first or last name:	first_name / last_name / formatted_name
	  sort = last_name
	  # localize dates: yes	/ no
	  localize_dates = yes
	  # set	a comma	separated list of preferred phone number types in descending priority
	  # or nothing for non-filtered	alphabetical order
	  preferred_phone_number_type =	pref, cell, home
	  # set	a comma	separated list of preferred email address types	in descending priority
	  # or nothing for non-filtered	alphabetical order
	  preferred_email_address_type = pref, work, home

	  # extend contacts with your own private objects
	  # these objects are stored with a leading "X-" before	the object name	in the vcard files
	  # every object label may only	contain	letters, digits	and the	- character
	  # example:
	  #   private_objects =	Jabber,	Skype, Twitter
	  # default: ,	(the empty list)
	  private_objects = Jabber, Skype, Twitter
	  # preferred vcard version: 3.0 / 4.0
	  preferred_version = 3.0
	  # Look into source vcf files to speed	up search queries: yes / no
	  search_in_source_files = no
	  # skip unparsable vcard files: yes / no
	  skip_unparsable = no

       2020, Eric Scheibler

0.17				 Aug 27, 2020			 KHARD.CONF(5)


Want to link to this manual page? Use this URL:

home | help