linux

Linux Compton使用技巧大公开

小樊
38
2025-12-16 02:35:12
栏目: 智能运维

Linux Compton使用技巧大公开

一 快速上手与安装

二 核心配置与关键参数

三 进阶规则与场景优化

四 性能调优与故障排查

五 一键可用的最小配置模板

# ~/.config/compton.conf
backend = "glx"
vsync = true
shadow = true
opacity = 0.88
ignore_root = true

# 轻量模糊
blur-background = true
blur-kern = "3x3box"

# 窗口透明度规则
opacity-rule = [
  "90:name *? 'Firefox'",
  "90:name *? 'Terminal'",
  "100:class_g 'Xephyr'"
]

# 阴影排除
shadow-exclude = [
  "name 'Notification'",
  "class_g ? 'Dmenu'",
  "class_g ? 'Dunst'",
  "_NET_WM_STATE@:32a * '_NET_WM_STATE_HIDDEN'",
  "_GTK_FRAME_EXTENTS@:c",
  "_NET_WM_STATE@:32a * '_NET_WM_STATE_STICKY'",
  "class_g ? 'i3-frame'"
]

使用方法:保存后执行killall compton && compton &;如需前台调试,使用compton --config ~/.config/compton.conf -f。该模板覆盖日常所需,兼顾性能、清晰度与易用性

0
看了该问题的人还看了