Skip to content

Powerline

Widget store that provides various powerline separators

Key
Default
Description
apiThe api object provided within the function
fmt" {} "Specify how the text should be formatted, {} represents the value that'll be displayed
fgtheme.foreground1Color to show the text in, defaults to theme.foreground1 or white based on theme
bgtheme.primaryColor to show the background in, defaults to theme.primary or accent based on theme

Triangles

Alt text

python
from dooit_extras.bar_widgets import Powerline
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ...
            Powerline.lower_left_triangle(...),
            Powerline.lower_right_triangle(...),

            Powerline.upper_left_triangle(...),
            Powerline.upper_right_triangle(...),
            # ...
        ]
    )

INFO

The preview image for triangles was created with a combination of different triangle separators (4)

Rounded

Alt text

python
from dooit_extras.bar_widgets import Powerline
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ...
            Powerline.left_rouned(...),
            Powerline.right_rounded(...),
            # ...
        ]
    )

Arrows

Alt text

python
from dooit_extras.bar_widgets import Powerline
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ...
            Powerline.left_arrow(...),
            Powerline.right_arrow(...),
            # ...
        ]
    )

Ice

Alt text

python
from dooit_extras.bar_widgets import Powerline
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ...
            Powerline.left_ice(...),
            Powerline.right_ice(...),
            # ...
        ]
    )

Flame

Alt text

python
from dooit_extras.bar_widgets import Powerline
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ...
            Powerline.left_flame(...),
            Powerline.right_flame(...),
            # ...
        ]
    )