在 Ubuntu 上如果你是用 Compton(现在很多发行版改用 picom,Compton 的 fork)做窗口合成器,重启方式通常有以下几种:
如果你是用 systemd 用户服务启动的:
systemctl --user restart compton
如果是 picom:
systemctl --user restart picom
查看状态:
systemctl --user status compton
pkill compton
compton &
如果是 picom:
pkill picom
picom &
有些版本支持 SIGUSR1 重新加载配置(不保证所有版本都有):
pkill -USR1 compton
如果不生效,就直接用“杀掉再启动”。
比如放在:
~/.config/autostart/那就:
pkill compton
compton --config ~/.config/compton.conf &
which compton
which picom
Ubuntu 20.04+ 很多已经是 picom 了。
如果你愿意,可以告诉我:
我可以给你最准确的一条命令。