Configs2026年7月13日·1 分钟阅读

Picom — Lightweight X11 Compositor with Animation Support

A lightweight standalone compositor for X11 that provides window transparency, shadows, blur, rounded corners, and animations for tiling window manager setups.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Picom
直接安装命令
npx -y tokrepo@latest install e116c273-7e73-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Picom is a standalone compositor for X11, forked from Compton. It adds visual effects like transparency, shadows, blur, and rounded corners to windows managed by any window manager. Picom is the go-to compositor for tiling WM users who want a polished desktop without switching to a full compositing WM.

What Picom Does

  • Composites X11 windows with true transparency and opacity control
  • Renders drop shadows behind windows with configurable radius and offset
  • Applies background blur (Gaussian or dual-Kawase) behind transparent windows
  • Draws rounded corners on window frames
  • Supports window animations for open, close, and workspace transitions

Architecture Overview

Picom uses the X Composite extension to redirect window rendering into offscreen pixmaps, then composites them onto the root window. It supports multiple backends: xrender (CPU-based), GLX (OpenGL), and the newer EGL backend. The animation system interpolates window geometry and opacity between states using configurable curves.

Self-Hosting & Configuration

  • Config file at ~/.config/picom/picom.conf using a simple key-value format
  • Set shadow = true, shadow-radius, and shadow-offset-x/y for shadows
  • Configure blur with blur-method = "dual_kawase" and blur-strength
  • Use corner-radius for rounded window corners
  • Define window rules with opacity-rule and shadow-exclude using WM class matching

Key Features

  • Multiple backends: xrender, GLX, and EGL for different hardware profiles
  • Dual-Kawase blur: efficient real-time background blur algorithm
  • Animation support: smooth transitions for window open/close/move
  • Per-window rules: set opacity, shadow, and blur exceptions by window class
  • VSync: tear-free rendering with configurable sync strategies

Comparison with Similar Tools

  • Compiz — older compositing WM with many effects; heavier and less maintained
  • xcompmgr — minimal X11 compositor; no blur, rounded corners, or animations
  • KWin — KDE compositor; full desktop integration, not standalone
  • Mutter — GNOME compositor; tied to the GNOME desktop
  • Hyprland — Wayland compositor with built-in effects; not X11

FAQ

Q: Does Picom work on Wayland? A: No. Picom is X11-only. On Wayland, compositing is handled by the compositor itself (Sway, Hyprland).

Q: How do I fix screen tearing with Picom? A: Enable VSync with vsync = true and try the GLX or EGL backend for best results.

Q: Can I disable effects for specific applications? A: Yes. Use shadow-exclude, opacity-rule, and blur-background-exclude with window class or name matching.

Q: What is the difference between GLX and EGL backends? A: EGL is the newer, preferred backend with better Wayland compatibility foundations. GLX is the legacy OpenGL path, still useful on older drivers.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产