温馨提示×

Debian Compton如何设置桌面特效

小樊
47
2025-09-05 02:31:18
栏目: 智能运维

在Debian上设置Compton桌面特效,可按以下步骤进行:

安装Compton

使用命令sudo apt updatesudo apt install compton进行安装。

配置Compton

Compton配置文件一般在~/.config/compton.conf,若不存在则创建。用文本编辑器打开文件,根据需求修改以下选项:

  • 启用背景模糊:设置bg_blur trueb true
  • 启用阴影:设置shadow truer true
  • 启用屏幕边缘模糊:设置screen_edge_blur trues true
  • 设置窗口透明度:通过opacity设置整体透明度,或通过opacity-rule为不同窗口设置不同透明度。
  • 选择后端backend可设为xrenderglxwaylandglxwayland通常性能更好。

重启Compton

保存配置文件后,使用killall comptoncompton --config ~/.config/compton.conf &重启Compton,使配置生效。

0