1.. _config-segments: 2 3***************** 4Segment reference 5***************** 6 7Segments 8======== 9 10Segments are written in Python, and the default segments provided with 11Powerline are located in :file:`powerline/segments/{extension}.py`. 12User-defined segments can be defined in any module in ``sys.path`` or 13:ref:`paths common configuration option <config-common-paths>`, import is 14always absolute. 15 16Segments are regular Python functions, and they may accept arguments. All 17arguments should have a default value which will be used for themes that 18don’t provide an ``args`` dict. 19 20More information is available in :ref:`Writing segments <dev-segments>` section. 21 22Available segments 23================== 24 25.. toctree:: 26 :glob: 27 28 segments/* 29