Compton与其他窗口管理器的搭配指南
一、适配范围与总体建议
二、常见搭配与配置要点
exec_always --no-startup-id compton;如需临时重载,可用命令:killall compton && compton &。也可绑定快捷键动态切换或调整参数(如切换后端、透明度)。compton --config ~/.config/compton.conf &)。三、启动与自启方式
compton --config <你的配置文件路径>;例如在 Openbox/Fluxbox 的 autostart 中加入该命令即可随登录启动。# ~/.config/systemd/user/compton.service
[Unit]
Description=Compton Window Composer
After=graphical-session.target
[Service]
ExecStart=/usr/bin/compton --config %h/.config/compton.conf
Restart=on-failure
[Install]
WantedBy=graphical-session.target
启用方式:systemctl --user daemon-reload && systemctl --user enable --now compton.service。如使用系统级服务,请确保与登录会话的 DISPLAY/XAUTHORITY 正确传递。四、性能与兼容优化
killall compton && compton & 快速重载,或在 WM 中绑定快捷键执行重载/切换。五、Wayland 与替代方案