在 Linux 中,compton 是一个常用的 X11 窗口合成器(现在多被其分支 picom 取代,但启动方式基本一致)。下面按常见情况说明如何启动。
最简单的方式:
compton
或(如果你用的是 picom):
picom
后台运行(不占用终端):
compton &
或
picom --daemon
如果你有配置文件(通常在 ~/.config/compton.conf 或 ~/.config/picom.conf):
compton --config ~/.config/compton.conf
或
picom --config ~/.config/picom.conf
~/.xinitrc(startx / 登录管理器)在 ~/.xinitrc 中(在启动窗口管理器之前):
compton &
exec dwm
或
picom &
exec i3
在对应配置文件中加入:
exec compton
或
exec --no-startup-id compton
compton
或picom
compton -b # 后台运行
compton -c # 开启阴影
compton -r 10 # 阴影模糊半径
compton --vsync # 开启垂直同步
ps aux | grep compton
或
pgrep compton
picom:which picom
sudo apt install compton
# 或
sudo apt install picom
如果你愿意,可以告诉我:
我可以给你精确的启动方式。