简化 Ubuntu 中 Compton 配置的步骤
一 准备与定位配置
sudo apt-get install compton。二 最小化配置模板
backend = glx
vsync = true
shadow = false
opacity = 1.0
backend = glx
vsync = true
shadow = true
shadow-radius = 5
shadow-offset-x = 1
shadow-offset-y = 1
shadow-opacity = 0.3
opacity = 1.0
compton --config ~/.config/compton.conf -b 启动(-b 为后台运行)。三 自动启动与热重载
compton -b(若使用自定义配置,改为 compton --config ~/.config/compton.conf -b)。[Unit]
Description=Compton Window Composer
After=graphical-session.target
[Service]
ExecStart=/usr/bin/compton --config %h/.config/compton.conf -b
Restart=always
[Install]
WantedBy=default.target
启用:systemctl --user daemon-reload && systemctl --user enable --now compton。killall compton && compton -b,或用 compton --config ~/.config/compton.conf -b 重启。四 进一步简化与排错