从命令行启动 compiz

从命令行启动 compiz

我正在创建自定义会话(使用 .xsession),我想使用 compiz。当我在 .xsession 中使用compizcompiz --replace命令并使用“恢复控制台”选项时,似乎没有加载任何插件。启动 compiz 后,我启动 ccsm,但没有加载任何插件。

当我使用 arch 时,compiz 有很多参数,我会使用 3 个左右,其中一个告诉 compiz 在启动时从我的配置中加载设置。以下是compiz --help来自 Ubuntu 12.04 的参数:

Usage: compiz [OPTIONS] [PLUGINS ...]
Options:
  --replace             Replace any existing window managers
  --display DISPLAY     Connect to X display DISPLAY (instead of $DISPLAY)
  --sm-disable          Disable session management
  --sm-client-id ID     Session management client ID
  --keep-desktop-hints  Retain existing desktop hints
  --sync                Make all X calls synchronous
  --debug               Enable debug mode
  --version             Show the program version
  --help                Show this summary

这也是man compiz

事情是这样的:当我compiz --replace在 Unity 会话下运行时,插件和所有好东西都能正常加载。当我在我的会话下运行它时,compiz 什么都没加载。

可能有帮助的信息:

  • 我已经尝试过 compiz --replace gconf
  • 我总是运行 gnome-settings-daemon
  • 我正在使用 Ubuntu 12.04(测试版)

答案1

转到“启动应用程序”并创建应用程序启动器。

Name = Compiz
Command = compiz --replace
Comment = start compiz

在此处输入图片描述

答案2

在将 11.10 升级到 12.04 时,我必须修改 compiz 配置以使用 gconf 作为配置后端。

/etc/compizconfig/config:

[general]
#backend = ini
backend = gconf
integration = true
plugin_list_autosort = true

经过这次修改后,运行compiz --replace结果与.xsession我在 11.10 中习惯的行为一致。

相关内容