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發行版和桌面環境版本而有所不同。建議查閱相關的官方文檔或社區論壇以獲取更詳細的指導信息。