sx-cairodeco is a plugin that uses the cairo graphics library to render some nice window decoration.
It’s plugin key is “decoration”.
sx-cairodeco depends on the cairo library and sx-actions.
A dictionary mapping Buttonstrokes to to action lines. The actions are emitted if the user clicks on the title bar. Provided information:
Default: no bindings.
The height of the title bar (int, in pixels).
Required.
Alignment of the title text (one of “left”, “center”, “right”).
Required.
Background color of the titlebar in hexadecimal rgb notation (#RRGGBB, example: #FF0000 for red) for the focused window.
Required.
Color of the window title in hexadecimal rgb notation for the focused window.
Required.
Background color of the titlebar in hexadecimal rgb notation for inactive (= not focused) windows.
Defaults to the value of cairodeco.color.
Color of the window title in hexadecimal rgb notation for inactive windows.
Defaults to the value of cairodeco.title.color.
'cairodeco.bindings': {
'1': 'moveresize.move',
'3': 'moveresize.resize',
},
'cairodeco.height': 15,
'cairodeco.title.position': "center",
'cairodeco.color': '#cc0000',
'cairodeco.title.color': '#ffffff',
'cairodeco.title.inactive_color': '#000000'
Buttonstrokes are similar to Keystrokes, except that they take button indices (1, 2 or 3) instead of keys.
Examples:
1
CTRL+3
Meta+2
ctrl+Shift+1