Skip to content

Configuration

github-actions[bot] edited this page Nov 27, 2026 · 1 revision

Configuration

Put Vectorator settings in the [vectorator] section of wayfire.ini. In Wayfire's option API, every option uses the vectorator/ prefix, for example vectorator/border_size.

Enable Vectorator

Disable other decorator plugins such as decoration or pixdecor before enabling vectorator. Keep your existing plugins in [core] plugins and add vectorator:

[core]
plugins = command move resize vectorator

Add winshadows to [core] plugins when you want window drop shadows. Vectorator does not draw built-in shadows.

Example configurations

Minimal configuration

[vectorator]
border_size = 5
rounded_corner_radius = 5
title_height = 0
button_size = 0

Custom sizing, colours, and SVG masks

[vectorator]
border_size = 4
rounded_corner_radius = 8
title_height = 30
button_size = 18
button_y_offset = 0
title_font = Inter 11
title_text_align = 1

fg_color = 0.117647 0.117647 0.180392 1.0
bg_color = 0.094118 0.094118 0.145098 0.95
fg_text_color = 0.803922 0.839216 0.956863 1.0
bg_text_color = 0.529412 0.533333 0.572549 1.0

button_minimize_svg = /path/to/minimize.svg
button_maximize_svg = /path/to/maximize.svg
button_restore_svg = /path/to/restore.svg
button_close_svg = /path/to/close.svg

button_color = 0.803922 0.839216 0.956863 1.0
button_inactive_color = 0.529412 0.533333 0.572549 1.0
button_hover_color = 0.192157 0.196078 0.266667 1.0
button_pressed_color = 0.270588 0.278431 0.352941 1.0

Wayfire 0.11 (main) titlebar and button layout options

On main, titlebar accepts a visibility mode and button_layout places controls on either side of the title:

[vectorator]
titlebar = windowed
button_layout = close,minimize,maximize:

Complete option reference

All defaults and ranges below match metadata/vectorator.xml on both wayfire-0.10 and main.

General

Option Type Default Branch notes Description
border_size int (>= 0) 5 Both Border width in pixels.
titlebar bool / string true (wayfire-0.10), always (main) Differs by branch On wayfire-0.10, enables or disables the titlebar (true or false). On main, sets when to render the titlebar: always, windowed, maximized, or never.
title_height int (>= 0) 0 Both Titlebar height in logical pixels. 0 selects automatic sizing derived from the title font.
maximized_borders bool false Both Renders side and bottom borders on maximised windows when set to true.
ignore_views string none Both Wayfire view criteria string that disables decoration for matching windows.
always_decorate string none Both Wayfire view criteria string that forces decoration for matching windows.
title_font string Empty (wayfire-0.10), sans 12 (main) Differs by branch Pango font string for titlebar text. An empty or sizeless value falls back to the GNOME org.gnome.desktop.interface font-name setting.
fg_color color 0.9 0.65 0.04 1.0 Both Border and titlebar colour for the focused window.
bg_color color 0.07 0.27 0.5 0.85 Both Border and titlebar colour for unfocused windows.
fg_text_color color 1.0 1.0 1.0 1.0 Both Titlebar text colour for the focused window.
bg_text_color color 0.7 0.7 0.7 1.0 Both Titlebar text colour for unfocused windows.
title_text_align int (0, 1, 2) 1 Both Titlebar text alignment: 0 left, 1 centre, 2 right.
rounded_corner_radius int (>= 0) 5 Both Corner radius in pixels for floating windows. Maximised frames always use square corners.

Buttons

Option Type Default Branch notes Description
button_layout string :minimize,maximize,close main only Comma-separated control names (minimize, maximize, close) with a colon separating the left and right groups.
button_size int (>= 0) 0 Both Square button size in logical pixels. 0 selects automatic sizing from the title font height.
button_color color 0.803922 0.839216 0.956863 1.0 Both Active glyph colour (#cdd6f4) for custom SVG masks and procedural fallbacks.
button_inactive_color color 0.529412 0.533333 0.572549 1.0 Both Inactive glyph colour (#878892) for custom SVG masks and procedural fallbacks.
button_hover_color color 0.192157 0.196078 0.266667 1.0 Both Hover background colour (#313244) for custom SVG masks and procedural fallbacks.
button_pressed_color color 0.270588 0.278431 0.352941 1.0 Both Pressed background colour (#45475a) for custom SVG masks and procedural fallbacks.
button_line_thickness double (>= 0.0) 0.7 Both Stroke width in logical pixels for procedural fallback controls. SVG controls define their own stroke width.
left_button_spacing int (>= 0) 8 Both Horizontal gap in logical pixels between buttons on the left.
right_button_spacing int (>= 0) 8 Both Horizontal gap in logical pixels between buttons on the right.
left_button_x_offset int 0 Both Horizontal offset in logical pixels for buttons on the left.
right_button_x_offset int 0 Both Horizontal offset in logical pixels for buttons on the right.
button_y_offset int 0 Both Vertical offset in logical pixels for buttons. Positive values move buttons down, and negative values move them up.
button_hover_duration int (>= 0) 75 Both Duration of the hover transition in milliseconds.
button_minimize_svg string (file) Empty Both Custom SVG mask path that overrides every state of the minimise button. Leave empty for bundled assets.
button_maximize_svg string (file) Empty Both Custom SVG mask path that overrides every state of the maximise button. Leave empty for bundled assets.
button_restore_svg string (file) Empty Both Custom SVG mask path that overrides every state of the restore button. Leave empty for bundled assets.
button_close_svg string (file) Empty Both Custom SVG mask path that overrides every state of the close button. Leave empty for bundled assets.

Shade

Option Type Default Branch notes Description
enable_shade bool true Both Enables shading windows into their titlebars by scroll or key binding.
shade_duration animation (>= 0) 1000ms sigmoid Both Duration and easing curve of the shade animation.
shade_modifier key <super> <ctrl> Both Modifier held while scrolling down to shade or up to unshade a window.
shade_toggle activator Empty Both Binding that toggles shade on the active window.

Logical geometry rules

title_height and button_size operate independently in logical pixels.

  • When title_height is 0, Vectorator calculates max(font_height * 3 / 2 + 8, 20).
  • When button_size is 0, Vectorator selects 16 logical pixels if the resolved font height is under 20 pixels, and 24 logical pixels if the resolved font height is 20 pixels or taller.
  • When either title_height or button_size is greater than 0, Vectorator expands the titlebar height to at least button_size + 2 * abs(button_y_offset) so buttons fit inside the titlebar without clipping.
  • When both title_height and button_size are 0, Vectorator keeps the font-derived titlebar height even when button_y_offset is non-zero.

HiDPI scaling

Logical decoration dimensions stay constant across outputs with different scale factors. Vectorator applies these rules on high-DPI displays:

  • Titlebar text renders through Cairo and Pango at the output device scale, honours GNOME text-scaling-factor, and centres and ellipsises titles that exceed the available width.
  • Buttons rasterise at round(logical_size * output_scale) so icons stay sharp on fractional and integer scales.
  • Rendered button bounds and pointer hit regions remain identical across scales.

Tiling, translucent windows, and CSD shading

  • Floating and maximised corners: Floating windows use rounded_corner_radius. Maximised frames switch to square corners so they align cleanly with monitor edges.
  • Grid-snapped and partially tiled windows: Partially tiled windows keep borders and resize handles on free edges instead of dropping resize input.
  • Translucent windows: Vectorator cuts out the client content region when painting the frame so titlebar colour does not show behind translucent applications.
  • CSD window shading: Shading a client-side decoration (CSD) window uses the resolved titlebar height and preserves the client's top shadow offset so the shaded bar aligns cleanly.

Live reload in Wayfire Config Manager

Open Wayfire Config Manager and select Vectorator under Effects. Vectorator registers live callbacks for geometry, colour, and SVG options:

  • Changes to title_height and button_size recreate decoration frames immediately.
  • Changes to button_color, button_inactive_color, button_hover_color, and button_pressed_color invalidate cached button textures immediately.
  • Changes to any button_*_svg path reload the affected control immediately.

No Wayfire restart is required after editing options in WCM or wayfire.ini.

Clone this wiki locally