键盘快捷键在gnome Shell中不起作用


11

升级到12.04后,Windows管理器(Metacity)的键盘快捷键(例如我的自定义Alt + 1,用于桌面切换的Alt + 2以及用于最大化窗口的默认Alt + F10)已在Gnome Shell中停止工作。任何人都知道可能是什么原因和/或补救措施?

Answers:


13

Gnome-Shell不使用Metacity Window Manager,而是使用新的Window Manager-Mutter,它使用新的配置系统-dconf,而旧的GNOME和Ubuntu Unity界面使用旧的配置系统-gconf。由于这个“系统设置”->键盘->快捷方式在带有GNOME3 shell的Ubuntu上不起作用:(

一种解决方法

安装dconf-tools 安装dconf-tools

运行dconf-editor

org.gnome.desktop.wm.keybindingsorg.gnome.mutter.keybindings

有关更多信息和解决方法,请参见Ubuntu错误#965921

一些有用的信息也可以在这里找到:blog.sudobits.com/2011/10/12/top-10-gnome-shell-keyboard-shortcuts/


2

在ubuntu 12.04中,修改了gnome-shell按键绑定,以便WindowsKey和CursorKeys现在控制窗口最大化和左右拆分,而在Activity(又称桌面)之间移动时,则由Ctrl-Alt和向上/向下键控制。

要恢复更多有用的行为,请安装dconf-tools并从外壳执行以下dconf命令:

dconf write /org/gnome/desktop/wm/keybindings/toggle-maximized "['<Super>Return', '<Alt>F10']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-down "['<Super>Down']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-up "['<Super>Up']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-down "['<Super><Shift>Down']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-up "['<Super><Shift>Up']"

你会得到:

<WindowsKey>Enter  : maximize Window
<WindowsKey>Left   : Align Window to left half of monitor
<WindowsKey>Right  : Align Window to right half of monitor
<WindowsKey>Up     : go to Activity/Desktop above
<WindowsKey>Down   : go to Activity/Desktop below

这样,您的Ctrl和Alt键将再次为您的应用程序释放,就像应该释放的一样,只有WindowsKey用于Windows /桌面管理。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.