在Debian中启用Compton主要有以下两种方法:
sudo apt update && sudo apt upgrade
。sudo apt install compton
。~/.config/compton.conf
文件,根据需求设置选项,如backend
、shadow
、opacity
等。compton --config ~/.config/compton.conf
。/etc/systemd/system/compton.service
文件,添加相关内容,然后执行sudo systemctl enable compton
和sudo systemctl start compton
。sudo apt install snapd
。sudo snap install compton --classic
。compton -b
(-b
参数表示后台运行)。/etc/systemd/system/compton.service
文件,添加相关内容,再执行sudo systemctl enable compton
和sudo systemctl start compton
。