Compton是一款轻量级的窗口合成器,它可以与多个Linux桌面环境集成,提供全局阴影和窗口透明度效果。以下是在几个流行的Linux发行版和桌面环境中集成Compton的方法:
sudo apt update
sudo apt install compton
~/.config/compton.conf
。backend = "glx"
shadow-exclude = [ ".*" ]
fade = true
unredirect-translucent-windows = true
compton -c ~/.config/compton.conf &
/etc/systemd/system/compton.service
,并添加以下内容:[Unit]
Description=Compton Window Composer
After=display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/compton -b -c -r -f --vsync --backend=glx --config=/etc/compton.conf
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable compton
sudo systemctl start compton
sudo apt update
sudo apt install compton
gnome-shell-extension-prefs
扩展:sudo apt get install gnome-shell-extension-prefs
.compton.conf
的文件,并添加配置选项:backend = "glx"
shadow-exclude = [".*"];
shadow-opacity = 0.5;
shadow-radius = 2;
compton.desktop
的文件,并添加以下内容:[Desktop Entry]
Type=Application
Exec=compton -b
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Compton
Alt + F2
键,然后输入r
并按回车键。sudo apt update
sudo apt install compton
compton.conf
的配置文件,并将其放在主目录中:backend = "glx"
shadow-exclude = [ ".*" ];
fade = true;
unredirect-translucent-windows = true;
compton -c ~/.compton.conf &
请注意,具体的集成步骤可能会因Linux发行版和桌面环境版本而有所不同。建议查阅相关的官方文档或社区论坛以获取更详细的指导信息。