sudo snap install compton --classic
sudo apt update && sudo apt install compton
compton -b
(后台运行)sudo systemctl start compton
sudo systemctl stop compton
sudo systemctl restart compton
sudo systemctl enable compton
sudo systemctl disable compton
~/.config/compton.conf
):nano ~/.config/compton.conf
shadow-exclude = ["window*"]
(排除窗口阴影)compton -c ~/.config/compton.conf
systemctl status compton
journalctl -u compton.service
sudo apt purge compton
(自动删除配置文件)sudo rm /usr/bin/compton
rm ~/.config/compton.conf
注意:若使用Wayland会话,Compton可能无法正常工作,需切换至X11或确认兼容性。
参考来源:[1,2,3,4,5,6,7,8,9,10,11,12]