在Debian中自定義Compton配置,可參考以下方法:
~/.config/compton.conf,若不存在則手動創建。使用文本編輯器(如nano)打開文件,可設置如background-opacity(背景透明度,0.0-1.0之間)、shadow-exclude(陰影排除區域)、blur-radius(模糊半徑)等參數。修改后保存文件,通過pkill compton和compton -c ~/.config/compton.conf &重啟Compton使配置生效。compton --background "#000000" --shadow-exclude "class_g = 'Firefox'"等。/etc/systemd/system/compton.service文件,添加配置內容,如ExecStart=/usr/bin/compton -c /home/your-username/.config/compton.conf,然后執行sudo systemctl daemon-reload、sudo systemctl enable compton和sudo systemctl start compton來設置開機自啟并啟動服務。