debian

Debian如何优化Compton性能

小樊
42
2025-12-12 21:50:13
栏目: 智能运维

Debian 下优化 Compton 性能

一 基础准备与配置路径

二 关键参数优化清单

三 示例性能向配置

# ~/.config/compton.conf
backend = "glx"
vsync = true
shadow = false
blur-background = false
opacity-rule = [ "90:class_g='Firefox'", "90:class_g='Alacritty'" ]
shadow-exclude = [ "name='conky'", "class_g='Polybar'" ]
frame-rate = 60
dpr = 1

说明:关闭阴影与背景模糊、仅对 Firefox/Alacritty 启用轻度透明、排除 conky/Polybar 的阴影,能在观感与性能间取得平衡。

四 启动与系统管理

[Unit]
Description=Compton Window Composer
After=xorg.service

[Service]
ExecStart=/usr/bin/compton --config /etc/xdg/compton.conf
Restart=on-failure

[Install]
WantedBy=multi-user.target

启用:sudo systemctl daemon-reload && sudo systemctl enable --now compton。

五 验证与排障

0
看了该问题的人还看了