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

LFC*_*fan 15 keyboard qt unity-2d

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

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

我不想更改我的 Compiz 快捷键,那么有什么方法可以将 Unity 2D 破折号的键盘映射更改为其他内容或完全禁用此快捷键?

the*_*lls 9

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

gconftool --set /desktop/unity/launcher/super_key_enable --type=bool 0
Run Code Online (Sandbox Code Playgroud)

(由于GNOME 3点的设置在dconf代替的gconf,和统一成为一个插件因此,该方法变得: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
Run Code Online (Sandbox Code Playgroud)

这将触发 Unity Home Dash

  • 我将它映射到 <caps_locks> (4认同)

idb*_*rii 9

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

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

打开终端并运行 gconf-editor

导航到此键:

/apps/compiz-1/plugins/unityshell/screen0/options/show_launcher
Run Code Online (Sandbox Code Playgroud)

将 show_launcher 键修改为单个键值。

gconf-editor 中的关键

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


如果你想要一个更人性化的界面,你可以使用命令行:

gconftool --set /apps/compiz-1/plugins/unityshell/screen0/options/show_launcher --type=string "<Super>space"
Run Code Online (Sandbox Code Playgroud)

或者使用compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager
Run Code Online (Sandbox Code Playgroud)

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

  • 哦,伙计,你刚刚让我免于自杀:) 谢谢。 (2认同)

小智 6

虽然计划默认禁用该快捷方式,但目前不打算使其可配置,请参阅错误 #705076