如何恢复默认键盘快捷键?

我已在系统▸首选项▸键盘快捷键中自定义了一些快捷键。

如何将单个快捷方式恢复为默认设置? 我不想重置所有的快捷方式,只是我选择的一些。

对于Ubuntu 13.04,看起来实现键盘快捷键的方式略有改变

快捷方式设置保存在以下位置(12.10可能不同):

org.gnome.settings-daemon.plugins.media-keys org.compiz.integrated org.gnome.desktop.wm.keybindings org.gnome.shell.keybindings 

您可以在dconf-editor应用程序中找到它们,然后使用“设置为默认值”按钮重置每个所需的条目。 可以使用sudo apt-get install dconf-tools在命令行sudo apt-get install dconf-tools

否则,您还可以尝试使用终端中的以下命令重置任何一个位置:

gsettings reset-recursively

(例如gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys

它们存储在gconf数据库中的键绑定,但不幸的是它们并非都在同一个地方。

但是,您可以通过查看位于/usr/share/gnome-control-center/keybindings/中的文件来获取所有键绑定gconf键的列表。

例如,/ /usr/share/gnome-control-center/keybindings/01-desktop-key.xml Desktop /usr/share/gnome-control-center/keybindings/01-desktop-key.xml包含Desktop下所有快捷键键盘快捷键列表的列表。

            

知道密钥名称后,可以将其恢复为默认值。

例如,假设您要恢复启动计算器的快捷方式,

替代文字

只需运行:

 gconftool -u "/apps/gnome_settings_daemon/keybindings/calculator" 

替代文字

构建DoR的答案,这个在命令行输入的简单脚本将重置所有快捷方式:

 cd /usr/share/gnome-control-center/keybindings for entry in $(grep KeyListEntry * |cut -d'/' -f2- |cut -d'"' -f1); do echo $entry gconftool -u "/$entry" done 
 gsettings reset-recursively org.gnome.desktop.wm.keybindings 

你不能。 但是如果你按下帮助并单击第1.2节 – 键盘技能 ,你可以看到默认值是什么,然后在右边你有一个关键grous列表:

  • 全局快捷键
  • 窗口快捷键
  • 应用密钥
  • 访问密钥

问候

这是我偶然发现的事情:

打开gconf-editor(按Alt + F2并输入gconf-editor)。

找到要重置的设置。 我找到了他们所在的几个地方:

  1. 应用> gnome_settings_daemon>键绑定

  2. 应用> metacity> global_keybindings

  3. 应用> metacity> window_keybindings

可能还有其他人。

右键单击该设置,然后单击“取消设置密钥”。 这会将其恢复为默认设置。

在Ubuntu 13.04中,看起来很多快捷方式可以在org->gnome->settings-daemon->plugins->media-keys 。 我能够用它重置我的音量按钮,我甚至不需要查找默认值,因为有一个重置按钮。

在Ubuntu 17.10上(在新设置窗口中):

在此处输入图像描述

选择设置>设备>键盘,然后全部重置...

这对我有用,无需重启Ubuntu或Gnome Desktop。 我曾尝试使用“快门”进行屏幕捕获,并更改了PrintScreenAlt + PrintScreen的一些热键绑定。 卸载快门后,我需要恢复它已更改的热键设置。 通过运行gconf-editor(从终端窗口)然后更改这两个位置的设置,我能够更改这些键的热键绑定:

  • apps-> metacity-> global_keybindings
  • apps-> metacity-> keybinding_commands

我正在运行Ubuntu 10.04 LTS,Gnome Desktop 2.30.2

使用dconf编辑器然后转到org.gnome.desktop.wm.keybindings 。 任何粗体都已修改,您可以单击右下方的“ Set to Default ”以获取这些条目。