隐藏键绑定?(特别是 Ctrl+Alt+D 和 Shift+Super+!)

隐藏键绑定?(特别是 Ctrl+Alt+D 和 Shift+Super+!)

我正在尝试在最新版本的 Ubuntu 上使用 Gnome,似乎有一些“秘密”的键绑定。例如,Ctrl++会最小化我的所有窗口,++会打开我的 dock 中的第一个程序。在设置和 gconf-editor 下,我找不到这些键绑定。++Alt也会最小化我的窗口,但它会在设置中显示。我在哪里可以找到和编辑我的所有键绑定?具体来说,我该如何更改前面提到的两个键绑定?谢谢。DShiftSuper!CtrlSuperD

答案1

虽然还有些秘密,但或许可以揭晓:

  • Ctrl++在(签入)AltD定义:/org/gnome/desktop/wm/keybindings/show-desktopdconf-editor

    dconf-编辑器

    但在这里Ctrl被命名<Primary>。因此我们可以在以下位置找到它们gsettings

    gsettings list-recursively | egrep "Primary.*Alt.*d"
    org.gnome.desktop.wm.keybindings show-desktop ['<Primary><Super>d', '<Primary><Alt>d', '<Super>d']
    
  • Shift++ Super(或者!更准确地说Shift++ Super1

    dconf-editor似乎是秘密 - 在和中显示gsettings

    gsettings list-recursively  | grep -i shift.*super
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-10 ['<Shift><Super>0']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-1 ['<Shift><Super>1']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-2 ['<Shift><Super>2']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-3 ['<Shift><Super>3']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-4 ['<Shift><Super>4']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-5 ['<Shift><Super>5']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-6 ['<Shift><Super>6']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-7 ['<Shift><Super>7']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-8 ['<Shift><Super>8']
    org.gnome.shell.extensions.dash-to-dock app-shift-hotkey-9 ['<Shift><Super>9']
    
  • Ctrl+ Super+D

    gnome-control-center keyboard在 GNOME 控制中心 → 键盘( )中以及dconf-editor(参见上文)中定义:

    Ctrl+超级+D

    以及gsettings

    gsettings list-recursively | egrep "Primary.*Super.*d"
    org.gnome.desktop.wm.keybindings show-desktop ['<Primary><Super>d', '<Primary><Alt>d', '<Super>d']
    

结论:

  1. 所有内容都显示在 中gsettings。但<Ctrl>被命名为<Primary>
  2. 所有这些东西看起来越来越像RegEdit其他操作系统。

相关内容