以下是一些Ubuntu下Compton的设置技巧:
sudo apt-get install compton命令安装。~/.config/compton.conf,若不存在则创建,用文本编辑器打开编辑。bg_blur true启用背景模糊,shadow true启用阴影,opacity false禁用窗口透明,vsync true启用垂直同步。backend设置为glx或wayland以提升性能,ignore_glx_glitz true可忽略OpenGL加速,还可通过shadow_exclude设置阴影排除规则。opacity-rule设置特定窗口的透明度规则,如opacity-rule = ["CLASS = 'Firefox', opacity = 0.8"]。blur-method设置模糊方法,如blur-method "gaussian",并可通过blur-radius设置模糊半径。sudo systemctl restart compton重启Compton使设置生效。cpulimit工具,如cpulimit -l 50 -p $(ps aux | grep compton | awk '{print $2}')。