You can apply visual effects like blur, shadows, and corner radius to specific LayerShell surfaces (e.g., waybar, notifications, or GTK layers).
Identify Layer Namespaces:
To find the available namespaces on your system, run:
swaymsg -r -t get_outputs | jq '.[0].layer_shell_surfaces | .[] | .namespace'
Note: GTK applications often use the gtk-layer-shell namespace.
Applying Effects via Swaymsg (IPC):
You can only set one effect at a time via swaymsg:
swaymsg layer_effects "waybar" "blur enable"
Applying Effects via Config File:
You can define a block of effects for a specific namespace in your Sway configuration:
layer_effects "waybar" {
blur enable;
blur_xray enable;
blur_ignore_transparent enable;
shadows enable;
corner_radius 20;
}
Available Effects for Layers:
blur <enable|disable>blur_xray <enable|disable>blur_ignore_transparent <enable|disable>shadows <enable|disable>corner_radius <int>reset: Resets/disables all previously applied effects to that layer.