我可以在键盘配置窗口中将Alt+F1和Alt+分配F2给任何我喜欢的功能,但它没有被使用。
Alt+F1始终表示‘冲回家’,而Alt+F2始终表示‘跑步’。
答案1
升级到Ubuntu 12.04(Precise Pangolin)并安装 GNOME Shell。我尝试从任何可能的地方禁用Alt+ F1,但无济于事。
就在我准备放弃的时候,我发现了这个要点:https://gist.github.com/2402448
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]" # disable Alt+F1
致谢扬·穆辛斯基。
答案2
使用 Ubuntu统一插件安装后,终端中的 musinsky gist 片段还不够。
使用禁用它CompizConfig 设置管理器:
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins-extra
ccsm
在部分“桌面”(左侧第三项),点击“Ubuntu Unity 插件”. 在标签中“一般的”(默认),单击编辑铅笔“执行命令的键”(第四项),将内容涂黑(删除),按OK。
常规选项卡
- 显示HUD的键-禁用
- 执行命令的键 -禁用
启动器选项卡
- 将键盘焦点移至启动器的键 -禁用
答案3
虽然johanmynhardt 给了我们正确的答案对于Alt+ F1,他没有告诉我们Alt+是干什么用的F2。for
Jesse Glick 展示的循环在评论中,我找到了Alt+F2命令。像这样删除两个都键:
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]" # Disable Alt + F1
gsettings set org.gnome.desktop.wm.keybindings panel-run-dialog "[]" # Disable Alt + F2
panel-main-menu
查找有效键(上例中的)的方法panel-run-dialog
是使用list-keys
命令行选项gsettings
。准备好获取一个相当长的列表。
以下是 20.04 的所有系统定义的键绑定:
switch-group
begin-resize
switch-to-workspace-7
begin-move
move-to-side-w
move-to-corner-nw
move-to-workspace-10
move-to-workspace-6
move-to-workspace-right
always-on-top
toggle-maximized
move-to-workspace-left
switch-to-workspace-8
cycle-panels
move-to-workspace-11
lower
move-to-workspace-7
toggle-above
move-to-workspace-down
switch-panels
minimize
cycle-windows
switch-to-workspace-9
move-to-workspace-12
toggle-on-all-workspaces
switch-input-source
move-to-workspace-8
move-to-side-n
maximize-horizontally
activate-window-menu
set-spew-mark
switch-windows-backward
maximize-vertically
move-to-corner-sw
move-to-workspace-9
maximize
panel-main-menu
close
move-to-monitor-up
raise-or-lower
move-to-side-e
cycle-windows-backward
switch-to-workspace-1
move-to-monitor-right
switch-windows
panel-run-dialog
switch-panels-backward
unmaximize
switch-to-workspace-2
switch-applications
switch-to-workspace-last
move-to-workspace-1
move-to-corner-ne
switch-to-workspace-3
switch-to-workspace-up
move-to-side-s
show-desktop
move-to-center
move-to-workspace-2
switch-to-workspace-left
switch-to-workspace-right
raise
move-to-corner-se
switch-to-workspace-10
switch-to-workspace-4
toggle-shaded
cycle-group-backward
move-to-workspace-3
switch-to-workspace-down
cycle-panels-backward
move-to-monitor-left
switch-applications-backward
switch-to-workspace-11
switch-input-source-backward
switch-to-workspace-5
move-to-workspace-4
move-to-monitor-down
toggle-fullscreen
switch-to-workspace-6
switch-to-workspace-12
cycle-group
move-to-workspace-up
move-to-workspace-last
switch-group-backward
move-to-workspace-5
我仍然看到一个panel-run-dialog
条目,我在安装时进行了测试,它按预期工作。运行set
上面显示的命令后,Alt+F2停止工作...
答案4
除了使用gsettings
,我们还可以采用 UI:dconf-editor
快捷方式存储在/org/gnome/desktop/wm/keybindings/
路径中
注意/org/gnome/desktop/wm/keybindings/panel-main-menu
它是如何说的
DEPRECATED: This key is deprecated and ignored.
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]"
确实,使用或通过编辑清除 Alt+F1/org/gnome/desktop/wm/keybindings/panel-main-menu
不再dconf-editor
起作用。
该设置现在位于/org/gnome/shell/extensions/apps-menu/apps-menu-toggle-menu
中dconf-editor
,在那里进行更改即可[]
为我修复此问题:
或者您可以使用以下方法禁用它gsettings
:
gsettings set org.gnome.shell.extensions.apps-menu apps-menu-toggle-menu "[]"