安裝依賴工具
確保安裝Compton及色彩管理相關工具(如libcolorhug-dev或colord):
# Debian/Ubuntu系統
sudo apt install compton libcolorhug-dev colord
創建/編輯配置文件
在~/.config/compton.conf中添加色彩管理參數(若文件不存在則手動創建):
# 啟用色彩管理
color-management = true;
# 指定ICC配置文件路徑(需替換為實際路徑)
color-profile = "/path/to/your/profile.icc";
# 啟用OpenGL色彩管理(可選)
glx-use-dri = 3;
glx-dri3-visuals-only = true;
配合系統色彩服務
colord服務運行并允許Compton訪問:sudo systemctl --user start colord
sudo systemctl --user enable colord
colord或arandr加載顯示器ICC配置文件。重啟Compton生效
pkill compton
compton -c ~/.config/compton.conf &
注意: