要在Debian上启用Compton,您需要先确保系统已更新,然后安装Compton及其依赖项。以下是详细步骤:
sudo apt update
sudo apt install compton x11-xserver-utils wmctrl
~/.config/compton.conf
。您可以使用任何文本编辑器创建或编辑此文件,例如nano
或vim
:nano ~/.config/compton.conf
# 禁用桌面背景
background = none
# 启用窗口阴影
shadow = true
# 设置Compton的缓存大小
cache_size = 1048576
# 设置Compton的间隔时间
interval = 0.1
compton --config ~/.config/compton.conf
~/.bashrc
或~/.xprofile
文件中:echo "compton --config ~/.config/compton.conf &" >> ~/.bashrc
source ~/.bashrc
完成以上步骤后,Compton应该已经在Debian系统上启用并运行了。您可以根据自己的需要调整配置文件中的设置以获得最佳效果。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:在Debian上如何启用Compton