Compton是一个在Linux系统上运行的Compositor,它能够将OpenGL或Wayland合成器与X11窗口系统结合使用。以下是一些常见的Compton设置选项:
基础设置
-
--backend:
- 指定使用的后端,如x11、wayland或glx。
-
--config:
-
--config-file:
-
--debug:
-
--log-level:
- 设置日志级别,可选值包括debug、info、warning、error。
-
--no-damage:
-
--no-opengl:
-
--no-xinerama:
-
--no-xrandr:
-
--no-xkb:
合成设置
-
--alpha-threshold:
-
--blur-radius:
-
--border-width:
设置窗口边框宽度。
-
--border-color:
-
--fade-in:
-
--fade-out:
-
--focus-follows-mouse:
-
--focus-new-windows:
-
--focus-stealing-prevention:
-
--max-alpha:
性能设置
-
--vsync:
-
--max-frame-time:
-
--min-frame-time:
-
--max-cpu-usage:
其他设置
-
--output:
-
--output-name:
-
--output-device:
-
--output-monitor:
-
--output-workarea:
-
--output-scale:
-
--output-offset:
-
--output-rotate:
配置文件示例
[general]
backend = x11
debug = true
log-level = info
[alpha]
threshold = 0.05
[blur]
radius = 2.0
[border]
width = 1
color = "#000000"
[fading]
in = true
out = true
[focus]
follows-mouse = true
new-windows = true
stealing-prevention = true
[max-frame-time]
time = 16.67
[max-cpu-usage]
usage = 80
使用方法
通常,你可以通过命令行参数直接运行Compton,或者在配置文件中设置这些选项,然后通过命令行启动Compton并指定配置文件路径。
compton --config /path/to/config.ini
请注意,具体的选项和行为可能会因Compton版本的不同而有所变化。建议查阅最新的官方文档或使用compton --help获取最新信息。