Skip to content

Appearance rules

Appearance keys override the global look for the windows a rule matches. They update while the window is open and on config reload.

# Blur every window
[[window_rule]]
blur = true
KeyDefaultDescription
opacity1.0Surface opacity, 0.0 to 1.0.
bluroffBlur behind the window, including a translucent Umbriel title bar.
blur_popupsoffAlso blur the window’s popups. Popups always blur the live content behind them.
blur_ignore_alpha0.5Skip blur where the content is more transparent than this, 0.0 to 1.0.
blur_optimizedglobalOverride appearance.blur.optimized.
dim_behind0.0Darken what is below the window on its output, 0.0 to 1.0. See Dim behind.
KeyDefaultDescription
border_widthglobalOverride appearance.border_width, 0 to 100.
outer_border_widthglobalOverride appearance.outer_border_width, 0 to 100.
border_color_focusedglobalOverride colors.border.focused.
border_color_unfocusedglobalOverride colors.border.unfocused.
border_color_outerglobalOverride colors.border.outer.
corner_radiusglobalOverride appearance.corner_radius, 0 to 100.
shadowglobalOverride appearance.shadow.enabled.
title_barglobal"on", "negotiated", "forced", or "off"; overrides appearance.title_bar.mode.
title_bar_buttonsglobalOverride appearance.title_bar.buttons: any of "minimize", "maximize", "close" from the title outward, or [] for none.
KeyDefaultDescription
border_effectglobalReplace effects.border with a border preset or pool, or "off".
border_effect_unfocusedglobalOverride effects.border_unfocused with true or false.
window_effectglobalReplace effects.window with a window preset or pool, or "off".
# Unfocused windows at 85% opacity
[[window_rule]]
match.is_focused = false
opacity = 0.85
[[window_rule]]
match.is_focused = true
opacity = 1.0

Opacity and blur fade when focus changes. The fade timing is set in Window opacity.

Each border_color_* key is independent: an unset one keeps the global color.

# Amber borders on scratchpad windows
[[window_rule]]
match.is_scratchpad = true
border_color_focused = "#E5C07BFF"
border_color_unfocused = "#5C4A2AFF"

match.is_only_window holds while no other window is on the workspace:

# No borders when a window is on its own
[[window_rule]]
match.is_only_window = true
border_width = 0
outer_border_width = 0
  • Floating windows count; pinned and scratchpad windows do not.
  • It does not drive fullscreen or maximize. Those follow match.is_alone; see Rules for a lone window.

match.is_cast_target holds while the window itself is captured:

# A green frame around the window being shared
[[window_rule]]
match.is_cast_target = true
border_width = 5
border_color_focused = "#40C057FF"
border_color_unfocused = "#40C057FF"
  • It matches window shares and window screenshots, not whole-output shares.
  • The frame is not part of the captured image, so viewers never see it.
# Title bars only in the stacking layout
[[window_rule]]
match.layout = "stacking"
title_bar = "on"

This also covers windows floated by hand in stacking, without adding bars to floating windows in other layouts.

# Always a bar on the editor, except its Preferences window
[[window_rule]]
match.app_id = "^my-editor$"
title_bar = "forced"
[[window_rule]]
match.app_id = "^my-editor$"
match.title = "^Preferences$"
title_bar = "on"
# Hide the bar while maximized to the edges
[[window_rule]]
match.is_maximized_to_edges = true
title_bar = "off"
  • A rule overrides the global mode in either direction; an omitted key inherits it.
  • Fullscreen and tab groups still hide the bar.
  • Forcing a bar does not remove the application’s own headerbar.

The modes and the bar’s look are described in Title bars.

# The app draws its own corners and shadow
[[window_rule]]
match.app_id = "^org[.]gnome[.]TextEditor$"
border_width = 0
corner_radius = 0
shadow = false
  • blur_ignore_alpha = 0.01 skips blur under fully or nearly transparent pixels, while still blurring translucent content.
  • Some applications clear their content just before closing a window, which can leave a blurred rectangle for a moment. blur_optimized = false blurs the live content behind it instead of the wallpaper.
  • If a shadow outline remains, add shadow = false. This removes the shadow from those windows entirely.
# Blur only where the app draws something
[[window_rule]]
match.app_id = "^example-app$"
blur = true
blur_ignore_alpha = 0.01
# Scanlines on mpv, without the border effect
[[window_rule]]
match.app_id = "^mpv$"
border_effect = "off"
window_effect = "scanlines"

Names refer to [effects.preset.<name>] or [effects.pool.<name>] tables of the matching kind; see Effects. A window keeps its pick from a pool across rule changes, and runtime overrides take precedence over rules (Pools).

# Darken everything behind the launcher
[[window_rule]]
match.app_id = "^launcher$"
dim_behind = 0.5
  • Content below the window on its output darkens; the window, its popups, and anything above it do not.
  • It is suppressed in the overview and does not block pointer input.
  • Several dimming windows stack.
  • Add match.is_focused = true to dim only while the window is focused.