如何更改运行 Unity 的 Dash 的 Windows 键的绑定?

如何更改运行 Unity 的 Dash 的 Windows 键的绑定?

目前,我在 Gnome 桌面上使用 Unity Qt 面板,当我按下 Windows 键时,Unity 的 dash 启动,但我无法使用任何基于 compiz 的快捷方式。

当我登录 Unity 2D 时也会出现同样的行为,因为 Windows 键启动了破折号。

我不想更改我的 Compiz 快捷方式,那么有没有办法将 Unity 2D 的 dash 的键盘映射更改为其他内容或完全禁用此快捷方式?

答案1

您可以使用以下命令禁用超级键:

gconftool --set /desktop/unity/launcher/super_key_enable --type=bool 0

(由于 GNOME 3 的设置在 dconf 中而不是 gconf 中,并且 unity 成为了一个插件。因此方法变成了dconf write /org/compiz/profiles/unity/plugins/unityshell/show-launcher '""':)

然后,您可以使用您喜欢的方法定义键盘快捷键来启动以下命令:

dbus-send --type=method_call --dest=com.canonical.Unity2d /Dash com.canonical.Unity2d.Dash.activateHome

这将触发 Unity Home Dash

答案2

我刚刚安装了 Ubuntu 11.04,并且能够使用 gconf-editor 来更改快捷键。

确保您没有运行 gnome-do!(如果设置为使用您的组合键,Dash 将无法绑定到这些键。)

打开终端并运行gconf-editor

导航至此键:

/apps/compiz-1/plugins/unityshell/screen0/options/show_launcher

将show_launcher键修改为单个键值。

gconf-editor 中的密钥

我将值设置为<Super>space,现在Super+space会打开 Dash,而不是 Super。请注意,如果您使用组合键,似乎需要一分钟才能使用它来调用 Dash。您还需要快速完成组合键。


如果您想要更加用户友好的界面,可以使用命令行:

gconftool --set /apps/compiz-1/plugins/unityshell/screen0/options/show_launcher --type=string "<Super>space"

或者使用compizconfig-设置管理器

sudo apt-get install compizconfig-settings-manager

在桌面部分,选择 Ubuntu Unity 插件。将 Key 设置为您想要的启动器键。同样,您需要一分钟才能调用 Dash。

答案3

目前还没有计划让它可配置,但计划默认停用该快捷方式,请参阅错误 #705076

答案4

对于 Ubuntu 12.04 中的 Unity-2D,以下命令对我有用:

dconf write /com/canonical/unity-2d/launcher/super-key-enable false    

http://wtanaka.com/node/8025

相关内容