在 Ubuntu 上,Compton(现在更多被称为 picom,Compton 已停止维护,picom 是其活跃分支)的配置文件位置和方式如下:
~/.config/compton.conf
或(如果是 picom):
~/.config/picom.conf
如果该文件不存在,可以手动创建。
mkdir -p ~/.config
touch ~/.config/compton.conf
或
touch ~/.config/picom.conf
gedit ~/.config/compton.conf
或用 vim:
vim ~/.config/compton.conf
compton --config ~/.config/compton.conf
picom --config ~/.config/picom.conf
你可以把它加到:
~/.xprofilebackend = "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 = 'Firefox'",
"95:class_g = 'Terminal'"
];
which compton
which picom
现代 Ubuntu(20.04+)一般推荐:
sudo apt install picom
如果你告诉我:
我可以给你更精确的配置和开机启动方法。