安装依赖工具
确保安装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 &
注意: