Answers:
Ctrl+ Alt+ ←和Ctrl+ Alt+ →分别是“切换到工作区左侧”和“切换到工作区右侧”的默认快捷方式。您可以通过运行来验证
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-left
(并right
代替left
)。
由于默认情况下GNOME shell有一列工作区这些快捷键显示完全没有影响(除非你尝试像这样)。
要取消绑定这些键盘组合,请运行
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
(与相似right
)。然后,您可以将这些组合用于自定义快捷方式。
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
问题在于,Ubuntu 18.04设置GUI不会显示所有键盘快捷键。
要查看所有的窗口管理器按键绑定:
gsettings list-recursively | grep org.gnome.desktop.wm.keybindings | sort
org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Super>Page_Down', '<Control><Alt>Down']
org.gnome.desktop.wm.keybindings switch-to-workspace-left ['<Control><Alt>Left']
org.gnome.desktop.wm.keybindings switch-to-workspace-right ['<Control><Alt>Right']
org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Super>Page_Up', '<Control><Alt>Up']
现在,您可以看到在“设置”屏幕中未显示一堆Ctrl+ Alt+ up/ down/ left/ right键绑定。
删除不需要的键绑定:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
现在,您可以在其他地方使用键盘绑定。
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "[]"
,和类似的Ctrl + Shift + Alt + right,将窗口移至右侧工作区,<br>gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "[]"