Compton是一个在Linux上运行的Compositor,它可以将OpenGL或Wayland合成器与X11窗口系统结合使用。以下是一些常用的Compton设置选项:
--backend
:
x11
、wayland
或glx
。--config
:
--config-file
:
--config
类似,指定配置文件。--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
获取最新信息。