1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
|
The [calendars] section
~~~~~~~~~~~~~~~~~~~~~~~
The *[calendars]* section is mandatory and must contain at least one subsection.
Every subsection must have a unique name (enclosed by two square brackets).
Each subsection needs exactly one *path* setting, everything else is optional.
Here is a small example:
.. literalinclude:: ../../tests/configs/small.conf
:language: ini
.. _calendars-color:
.. object:: color
khal will use this color for coloring this calendar's event.
The following color names are supported: *black*, *white*, *brown*, *yellow*,
*dark gray*, *dark green*, *dark blue*, *light gray*, *light green*, *light
blue*, *dark magenta*, *dark cyan*, *dark red*, *light magenta*, *light
cyan*, *light red*.
Depending on your terminal emulator's settings, they might look different
than what their name implies.
In addition to the 16 named colors an index from the 256-color palette or a
24-bit color code can be used, if your terminal supports this.
The 256-color palette index is simply a number between 0 and 255.
The 24-bit color must be given as #RRGGBB, where RR, GG, BB is the
hexadecimal value of the red, green and blue component, respectively.
When using a 24-bit color, make sure to enclose the color value in ' or "!
If the color is set to *auto* (the default), khal tries to read the file
*color* from this calendar's vdir, if this fails the default_color (see
below) is used. If color is set to '', the default_color is always used.
:type: color
:default: auto
.. _calendars-path:
.. object:: path
The path to an existing directory where this calendar is saved as a *vdir*.
The directory is searched for events or birthdays (see ``type``). The path
also accepts glob expansion via `*` or `?` when type is set to discover.
This allows for paths such as `~/accounts/*/calendars/*`, where the
calendars directory contains vdir directories. In addition, `~/calendars/*`
and `~/calendars/default` are valid paths if there exists a vdir in the
`default` directory. (The previous behavior of recursively searching
directories has been replaced with globbing).
:type: string
:default: None
.. _calendars-readonly:
.. object:: readonly
setting this to *True*, will keep khal from making any changes to this
calendar
:type: boolean
:default: False
.. _calendars-type:
.. object:: type
Setting the type of this collection (default ``calendar``).
If set to ``calendar`` (the default), this collection will be used as a
standard calendar, that is, only files with the ``.ics`` extension will be
considered, all other files are ignored (except for a possible `color` file).
If set to ``birthdays`` khal will expect a VCARD collection and extract
birthdays from those VCARDS, that is only files with ``.ics`` extension will
be considered, all other files will be ignored. ``birthdays`` also implies
``readonly=True``.
If set to ``discover``, khal will use
`globbing <https://en.wikipedia.org/wiki/Glob_(programming)>`_ to expand this
calendar's `path` to (possibly) several paths and use those as individual
calendars (this cannot be used with `birthday` collections`). See `Exemplary
discover usage`_ for an example.
If an individual calendar vdir has a `color` file, the calendar's color will
be set to the one specified in the `color` file, otherwise the color from the
*calendars* subsection will be used.
:type: option, allowed values are *calendar*, *birthdays* and *discover*
:default: calendar
The [default] section
~~~~~~~~~~~~~~~~~~~~~
Some default values and behaviors are set here.
.. _default-default_calendar:
.. object:: default_calendar
The calendar to use if none is specified for some operation (e.g. if adding a
new event). If this is not set, such operations require an explicit value.
:type: string
:default: None
.. _default-default_command:
.. object:: default_command
Command to be executed if no command is given when executing khal.
:type: option, allowed values are *calendar*, *list*, *interactive*, *printformats*, *printcalendars*, *printics* and **
:default: calendar
.. _default-highlight_event_days:
.. object:: highlight_event_days
If true, khal will highlight days with events. Options for
highlighting are in [highlight_days] section.
:type: boolean
:default: False
.. _default-print_new:
.. object:: print_new
After adding a new event, what should be printed to standard out? The whole
event in text form, the path to where the event is now saved or nothing?
:type: option, allowed values are *event*, *path* and *False*
:default: False
.. _default-show_all_days:
.. object:: show_all_days
By default, khal displays only dates with events in `list` or `calendar`
view. Setting this to *True* will show all days, even when there is no event
scheduled on that day.
:type: boolean
:default: False
.. _default-timedelta:
.. object:: timedelta
Controls for how many days into the future we show events (for example, in
`khal list`) by default.
:type: timedelta
:default: 2d
The [highlight_days] section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When highlight_event_days is enabled, this section specifies how
the highlighting/coloring of days is handled.
.. _highlight_days-color:
.. object:: color
What color to use when highlighting -- explicit color or use calendar
color when set to ''
:type: color
:default:
.. _highlight_days-default_color:
.. object:: default_color
Default color for calendars without color -- when set to '' it
actually disables highlighting for events that should use the
default color.
:type: color
:default:
.. _highlight_days-method:
.. object:: method
Highlighting method to use -- foreground or background
:type: option, allowed values are *foreground*, *fg*, *background* and *bg*
:default: fg
.. _highlight_days-multiple:
.. object:: multiple
How to color days with events from multiple calendars -- either
explicit color or use calendars' colors when set to ''
:type: color
:default:
The [keybindings] section
~~~~~~~~~~~~~~~~~~~~~~~~~
Keybindings for :command:`ikhal` are set here. You can bind more then one key
(combination) to a command by supplying a comma-separated list of keys.
For binding key combinations concatenate them keys (with a space in
between), e.g. **ctrl n**.
.. _keybindings-delete:
.. object:: delete
delete the currently selected event
:type: list
:default: d
.. _keybindings-down:
.. object:: down
move the cursor down (in the calendar browser)
:type: list
:default: down, j
.. _keybindings-duplicate:
.. object:: duplicate
duplicate the currently selected event
:type: list
:default: p
.. _keybindings-export:
.. object:: export
export event as a .ics file
:type: list
:default: e
.. _keybindings-external_edit:
.. object:: external_edit
edit the currently selected events' raw .ics file with $EDITOR
Only use this, if you know what you are doing, the icalendar library we use
doesn't do a lot of validation, it silently disregards most invalid data.
:type: list
:default: meta E
.. _keybindings-left:
.. object:: left
move the cursor left (in the calendar browser)
:type: list
:default: left, h, backspace
.. _keybindings-mark:
.. object:: mark
go into highlight (visual) mode to choose a date range
:type: list
:default: v
.. _keybindings-new:
.. object:: new
create a new event on the selected date
:type: list
:default: n
.. _keybindings-other:
.. object:: other
in highlight mode go to the other end of the highlighted date range
:type: list
:default: o
.. _keybindings-quit:
.. object:: quit
quit
:type: list
:default: q, Q
.. _keybindings-right:
.. object:: right
move the cursor right (in the calendar browser)
:type: list
:default: right, l, space
.. _keybindings-save:
.. object:: save
save the currently edited event and leave the event editor
:type: list
:default: meta enter
.. _keybindings-search:
.. object:: search
open a text field to start a search for events
:type: list
:default: /
.. _keybindings-today:
.. object:: today
focus the calendar browser on today
:type: list
:default: t
.. _keybindings-up:
.. object:: up
move the cursor up (in the calendar browser)
:type: list
:default: up, k
.. _keybindings-view:
.. object:: view
show details or edit (if details are already shown) the currently selected event
:type: list
:default: enter
The [locale] section
~~~~~~~~~~~~~~~~~~~~
It is mandatory to set (long)date-, time-, and datetimeformat options, all others options in the **[locale]** section are optional and have (sensible) defaults.
.. _locale-dateformat:
.. object:: dateformat
khal will display and understand all dates in this format, see :ref:`timeformat <locale-timeformat>` for the format
:type: string
:default: %d.%m.
.. _locale-datetimeformat:
.. object:: datetimeformat
khal will display and understand all datetimes in this format, see
:ref:`timeformat <locale-timeformat>` for the format.
:type: string
:default: %d.%m. %H:%M
.. _locale-default_timezone:
.. object:: default_timezone
this timezone will be used for new events (when no timezone is specified) and
when khal does not understand the timezone specified in the icalendar file.
If no timezone is set, the timezone your computer is set to will be used.
:type: timezone
:default: None
.. _locale-firstweekday:
.. object:: firstweekday
the first day of the week, were Monday is 0 and Sunday is 6
:type: integer, allowed values are between 0 and 6
:default: 0
.. _locale-local_timezone:
.. object:: local_timezone
khal will show all times in this timezone
If no timezone is set, the timezone your computer is set to will be used.
:type: timezone
:default: None
.. _locale-longdateformat:
.. object:: longdateformat
khal will display and understand all dates in this format, it should
contain a year (e.g. *%Y*) see :ref:`timeformat <locale-timeformat>` for the format.
:type: string
:default: %d.%m.%Y
.. _locale-longdatetimeformat:
.. object:: longdatetimeformat
khal will display and understand all datetimes in this format, it should
contain a year (e.g. *%Y*) see :ref:`timeformat <locale-timeformat>` for the format.
:type: string
:default: %d.%m.%Y %H:%M
.. _locale-timeformat:
.. object:: timeformat
khal will display and understand all times in this format.
The formatting string is interpreted as defined by Python's `strftime
<https://docs.python.org/2/library/time.html#time.strftime>`_, which is
similar to the format specified in ``man strftime``.
:type: string
:default: %H:%M
.. _locale-unicode_symbols:
.. object:: unicode_symbols
by default khal uses some unicode symbols (as in 'non-ascii') as indicators for things like repeating events,
if your font, encoding etc. does not support those symbols, set this to *False* (this will enable ascii based replacements).
:type: boolean
:default: True
.. _locale-weeknumbers:
.. object:: weeknumbers
Enable weeknumbers in `calendar` and `interactive` (ikhal) mode. As those are
iso weeknumbers, they only work properly if `firstweekday` is set to 0
:type: weeknumbers
:default: off
The [sqlite] section
~~~~~~~~~~~~~~~~~~~~
.. _sqlite-path:
.. object:: path
khal stores its internal caching database here, by default this will be in the *$XDG_DATA_HOME/khal/khal.db* (this will most likely be *~/.local/share/khal/khal.db*).
:type: string
:default: None
The [view] section
~~~~~~~~~~~~~~~~~~
The view section contains configuration options that effect the visual appearance
when using khal and ikhal.
.. _view-agenda_day_format:
.. object:: agenda_day_format
Specifies how each *day header* is formatted.
:type: string
:default: {bold}{name}, {date-long}{reset}
.. _view-agenda_event_format:
.. object:: agenda_event_format
Default formatting for events used when the user asks for all events in a
given time range, used for :command:`list`, :command:`calendar` and in
:command:`interactive` (ikhal). Please note, that any color styling will be
ignored in `ikhal`, where events will always be shown in the color of the
calendar they belong to.
The syntax is the same as for :option:`--format`.
:type: string
:default: {calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{description-separator}{description}{reset}
.. _view-bold_for_light_color:
.. object:: bold_for_light_color
Whether to use bold text for light colors or not. Non-bold light colors may
not work on all terminals but allow using light background colors.
:type: boolean
:default: True
.. _view-dynamic_days:
.. object:: dynamic_days
Defines the behaviour of ikhal's right column. If `True`, the right column
will show events for as many days as fit, moving the cursor through the list
will also select the appropriate day in the calendar column on the left. If
`False`, only a fixed ([default] timedelta) amount of days' events will be
shown, moving through events will not change the focus in the left column.
:type: boolean
:default: True
.. _view-event_format:
.. object:: event_format
Default formatting for events used when the start- and end-date are not
clear through context, e.g. for :command:`search`, used almost everywhere
but :command:`list` and :command:`calendar`. It is therefore probably a
sensible choice to include the start- and end-date.
The syntax is the same as for :option:`--format`.
:type: string
:default: {calendar-color}{cancelled}{start}-{end} {title}{repeat-symbol}{description-separator}{description}{reset}
.. _view-event_view_always_visible:
.. object:: event_view_always_visible
Set to true to always show the event view window when looking at the event list
:type: boolean
:default: False
.. _view-event_view_weighting:
.. object:: event_view_weighting
weighting that is applied to the event view window
:type: integer
:default: 1
.. _view-frame:
.. object:: frame
Whether to show a visible frame (with *box drawing* characters) around some
(groups of) elements or not. There are currently several different frame
options available, that should visually differentiate whether an element is
in focus or not. Some of them will probably be removed in future releases of
khal, so please try them out and give feedback on which style you prefer
(the color of all variants can be defined in the color themes).
:type: option, allowed values are *False*, *width*, *color* and *top*
:default: False
.. _view-theme:
.. object:: theme
Choose a color theme for khal.
This is very much work in progress. Help is really welcome! The two currently
available color schemes (*dark* and *light*) are defined in
*khal/ui/colors.py*, you can either help improve those or create a new one
(see below). As ikhal uses urwid, have a look at `urwid's documentation`__
for how to set colors and/or at the existing schemes. If you cannot change
the color of an element (or have any other problems) please open an issue on
github_.
If you want to create your own color scheme, copy the structure of the
existing ones, give it a new and unique name and also add it as an option in
`khal/settings/khal.spec` in the section `[default]` of the property `theme`.
__ http://urwid.org/manual/displayattributes.html
.. _github: # https://github.com/pimutils/khal/issues
:type: option, allowed values are *dark* and *light*
:default: dark
|