在 Ubuntu(以及其它 Linux 发行版)语境下,compton 和 picom 的关系可以这样理解:
xcompmgr-dana fork 出来的✅ 简单说:picom = 现代版、活跃维护的 compton
| 对比项 | compton | picom |
|---|---|---|
| 维护状态 | 基本停止 | 活跃维护 |
| Ubuntu 包名 | compton |
picom |
| 配置文件 | ~/.config/compton.conf |
~/.config/picom.conf |
| X11 支持 | ✅ | ✅ |
| Wayland | ❌ | ❌(仍主要 X11) |
| 新特性 | 少 | 多 |
| 性能优化 | 一般 | 更好 |
| 阴影/模糊 | 基础 | 更强(如 kawase blur) |
| 推荐程度 | 不推荐 | ✅ 推荐 |
sudo apt install compton
sudo apt install picom
运行:
picom &
或开机自启(i3 / Openbox / 桌面环境都可)。
# ~/.config/picom.conf
backend = "glx";
shadow = true;
fade = true;
blur-method = "kawase";
blur-strength = 5;
compton 是老项目,picom 是它的现代替代品;在 Ubuntu 上你应该直接用 picom。
如果你是用 i3 / bspwm / Openbox 或想做透明特效,我也可以帮你写完整 picom 配置。