Window Border Decorations

Warning

This feature is experimental.

The decorations may behave unexpectedly, have missing features and will probably crash at some point!

Feedback on any issues would be appreciated.

GradientBorder

class qtile_extras.layout.decorations.borders.GradientBorder(**config)[source]

Renders borders with a gradient.

colours defines the list of colours in the gradient.

The angle/direction of the gradient is set by the points parameter. This is a list of a two (x, y) tuples. The x and y values are relative to the window. A value of (0, 0) is the top left corner while (1, 1) represents the bottom right corner.

offsets is used to adjust the position of the colours within the gradient. Leaving this as None will space the colours evenly. The values need to be in ascending order and in the range of 0.0 (the very start of the gradient) and 1.0 (the end of the gradient). These represent positions on the imagninary line between the two points defined above.

When radial=True the points parameter has no impact. The gradient will be drawn from the center of the window to the corner of the window. offsets can still be used to adjust the spacing of the colours.

../../_images/max_gradient_border.png

border_focus=GradientBorder(colours=[“00f”, “0ff”])

../../_images/max_gradient_border_2.png

border_focus=GradientBorder(colours=[“f0f”, “00f”, “0ff”], points=[(0, 1), (1, 0)])

key

default

description

colours

['00ffff', '0000ff']

List of colours in the gradient

offsets

None

Offset locations (in range of 0.0-1.0) for gradient stops. None to use regular spacing.

points

[(0, 0), (0, 1)]

Points to size/angle the gradient. See docs for more.

radial

False

Use radial gradient

GradientFrame

class qtile_extras.layout.decorations.borders.GradientFrame(**config)[source]

Renders a frame with a gradient. Each edge’s gradient is from the outside towards the centre.

../../_images/max_gradient_frame.png

border_focus=GradientFrame(colours=[“00f”, “0ff”])

key

default

description

colours

['00ffff', '0000ff']

List of colours in the gradient

ScreenGradientBorder

class qtile_extras.layout.decorations.borders.ScreenGradientBorder(**config)[source]

Renders a border with a gradient which is scaled to the screen, rather than the window. This means that a window’s border will change depending on where it is in the screen.

colours defines the list of colours in the gradient.

The angle/direction of the gradient is set by the points parameter. This is a list of a two (x, y) tuples. The x and y values are relative to the screen. A value of (0, 0) is the top left corner while (1, 1) represents the bottom right corner.

offsets is used to adjust the position of the colours within the gradient. Leaving this as None will space the colours evenly. The values need to be in ascending order and in the range of 0.0 (the very start of the gradient) and 1.0 (the end of the gradient). These represent positions on the imagninary line between the two points defined above.

When radial=True the points parameter has no impact. The gradient will be drawn from the center of the screen to the corner of the screen. offsets can still be used to adjust the spacing of the colours.

../../_images/matrix_screen_gradient_1.png

ScreenGradientBorder(colours=[“f00”, “0f0”, “00f”], points=[(0,0), (1,1)])

../../_images/matrix_screen_gradient_2.png

Gradient is applied to screen…

../../_images/matrix_screen_gradient_3.png

…no matter how many windows are open.

key

default

description

colours

['00ffff', '0000ff']

List of colours in the gradient

offsets

None

Offset locations (in range of 0.0-1.0) for gradient stops. None to use regular spacing.

points

[(0, 0), (0, 1)]

Points to size/angle the gradient. See docs for more.

radial

False

Use radial gradient

SolidEdge

class qtile_extras.layout.decorations.borders.SolidEdge(**config)[source]

A decoration that renders a solid border. Colours can be specified for each edge.

../../_images/max_solid_edge.png

SolidEdge(colours=[“00f”, “0ff”, “00f”, “0ff”])

key

default

description

colours

['00f', '00f', '00f', '00f']

List of colours for each edge of the window [N, E, S, W].