Debian Compton的圖形界面設置主要通過編輯配置文件實現,以下是具體步驟及常用設置:
sudo apt install compton
即可完成安裝。~/.config/compton.conf
,使用文本編輯器(如nano
)打開,例如nano ~/.config/compton.conf
。backend = "glx"
,可提高性能,若用Wayland則設為wayland
。shadow = true
開啟陰影,還可設置shadow-radius
等參數調整陰影大小和位置。opacity = 0.8
設置窗口透明度,ignore_root = true
可忽略根窗口透明度。vsync = true
開啟,能減少畫面撕裂。glx-copy-from-front = false
減少重繪,或使用cpulimit
限制資源占用。killall compton
,再輸入compton &
重啟Compton使設置生效。此外,還可通過創建桌面環境自啟動項實現開機自啟,如在GNOME中創建~/.config/autostart/compton.desktop
文件并添加相關內容。