centos

centos compton性能如何提升配置

小樊
44
2025-12-23 15:14:39
栏目: 智能运维

CentOS 下提升 Compton 性能的配置要点

一 基础准备与驱动检查

二 核心性能参数建议

三 进阶优化与场景化配置

四 快速可用的性能优先配置示例

# ~/.config/compton.conf
backend = "glx"
vsync = false
shadow = false
bg_blur = false
screen_edge_blur = false
opacity = 1.0
alpha-mode = "none"
glx-copy-from-front = true
shader-file = null
shader-frag = null
shader-vert = null
frame-rate = 60

# 可按需添加:对特定应用关闭阴影或固定不透明
shadow-exclude = [ "class_g='Firefox'", "class_g='mpv'" ]
opacity-rule = [ "100:class_g='Alacritty'", "100:class_g='gnome-terminal'" ]

应用方式:保存后执行 killall compton && compton --config ~/.config/compton.conf;若使用登录自启,可用 systemd 服务单元(ExecStart 指向上述命令)。

五 验证与排错

0
看了该问题的人还看了