Powerline: qtile widgets don't work

Created on 23 Nov 2019  路  1Comment  路  Source: powerline/powerline

I have been trying to get powerline working in qtile's built-in bar.

All the powerline documentation says about it is:

Add the following to :file:~/.config/qtile/config.py:

```` Python

from libqtile.bar import Bar
from libqtile.config import Screen
from libqtile.widget import Spacer

from powerline.bindings.qtile.widget import PowerlineTextBox

screens = [
Screen(
top=Bar([
PowerlineTextBox(update_interval=2, side='left'),
Spacer(),
PowerlineTextBox(update_interval=2, side='right'),
],
35 # width
),
),
]
````

Following this I got an error until I also added a text argument. So the relevant section of my config.py for qtile is:

PowerlineTextBox(
    update_interval = 2,  # the documentation says to use this, but I don't understand what it does
    side = left,  # whether this is set to right or left doesn't seem to change anything
    text = 'left',
    # bar_colours is defined earlier in my config file
    foreground = bar_colours[2],
    background = bar_colours[9],
    ),

Now there are no errors, but all I see in my panel is the word 'text' on a coloured background. I have tried adding various other instances of PowerlineTextBox and Spacer in different places but this makes no difference.
I haven't messed with any powerline configuration files at all, and I'm using the standard qtile and powerline packages from the Arch repos.

Issue #499 seems to offer an alternative method, but I can't work out what to do with the code snippets.

cwm bug question

Most helpful comment

@quarkQuark As a temporary workaround, consider using lemonbar. It is better supported by powerine.

>All comments

@quarkQuark As a temporary workaround, consider using lemonbar. It is better supported by powerine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sachevl picture sachevl  路  3Comments

damienstanton picture damienstanton  路  3Comments

paul-tcell picture paul-tcell  路  5Comments

iamjboyd picture iamjboyd  路  6Comments

guyzmo picture guyzmo  路  5Comments