linux

如何在Linux上安装Compton并配置

小樊
33
2025-08-11 03:48:53
栏目: 智能运维

安装Compton

根据不同的Linux发行版,使用相应的包管理器进行安装:

配置Compton

创建或编辑配置文件~/.config/compton.conf

backend = "glx";
shadow-exclude = "*.menu,*.notification";
fade = true;
opacity-rule = [ "class_g = 'Firefox' window_opacity = 0.9" ];

启动Compton

[Unit]
Description=Compton Compositor
After=display-manager.service

[Service]
ExecStart=/usr/local/bin/compton --config ~/.config/compton.conf
Restart=always

[Install]
WantedBy=multi-user.target

然后执行sudo systemctl enable comptonsudo systemctl start compton

0
看了该问题的人还看了