Compton 是一个曾经流行的 Xorg 合成器(现在大多被它的分支 picom 取代)。下面给你几种找 Compton 配置的常见途径:
如果你是通过包管理器安装的 compton,通常会有示例配置:
# Debian / Ubuntu
ls /usr/share/doc/compton/
# 可能看到
compton.sample.conf
复制出来用:
cp /usr/share/doc/compton/compton.sample.conf ~/.config/compton.conf
Compton 默认读取:
~/.config/compton.conf
# 或
~/.compton.conf
如果没有,可以自己新建。
https://github.com/chjj/compton
示例配置在:
https://github.com/chjj/compton/blob/master/compton.sample.conf
https://github.com/yshui/picom
示例配置:
https://github.com/yshui/picom/blob/next/picom.conf.example
Arch Wiki
https://wiki.archlinux.org/title/Picom
(虽写 picom,但 compton 配置基本兼容)
compton.conf)Dotfiles 网站
https://dotfiles.github.io/
https://github.com/search?q=compton.conf
backend = "glx";
vsync = true;
shadow = true;
shadow-radius = 12;
shadow-opacity = 0.5;
fade = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
opacity-rule = [
"90:class_g = 'URxvt'",
"95:class_g = 'Firefox'"
];
如果你愿意,可以告诉我:
我可以直接帮你写一份配置。