禁用 Left-Super 窗口平铺

禁用 Left-Super 窗口平铺

我正在使用 Ubuntu Gnome 15.10,目前左右 SUPER 加箭头键均会触发窗口捕捉 - 我想将其设置为仅右 SUPER 执行任何窗口管理,这可能吗?

仔细研究后发现,UG 15.10 使用 mutter 作为窗口管理器 - 负责窗口平铺。查看 xml 设置定义和键盘应用程序,我可以看到设置为 的设置Windows -> View Split on Left|RightCtrl+Alt+Left|Right但是在我的计算机上,除了这个可自定义的快捷方式之外,Super+Left|Right还会触发它,这让我很抓狂,因为我使用的是 Mac - 它会跳到行尾。

我可以通过交换 CTRL 和 Super 来解决这个问题,但是每次我尝试使用 xmodmap 执行此操作时,某些应用程序都不会注册更改或完全禁用超级!

谢谢你的帮助

编辑

wm

$ gsettings list-recursively org.gnome.desktop.wm.keybindings
org.gnome.desktop.wm.keybindings cycle-windows-backward ['<Shift><Alt>Escape']
org.gnome.desktop.wm.keybindings minimize ['<Primary><Alt>KP_0']
org.gnome.desktop.wm.keybindings move-to-workspace-7 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-8 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-9 @as []
org.gnome.desktop.wm.keybindings move-to-monitor-left ['<Super><Shift>Left']
org.gnome.desktop.wm.keybindings move-to-workspace-5 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-6 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-10 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-11 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-12 @as []
org.gnome.desktop.wm.keybindings move-to-center @as []
org.gnome.desktop.wm.keybindings unmaximize ['<Primary><Super>Down', '<Super>Down', '<Alt>F5']
org.gnome.desktop.wm.keybindings panel-main-menu ['<Super>s', '<Alt>F1']
org.gnome.desktop.wm.keybindings cycle-windows ['<Alt>Escape']
org.gnome.desktop.wm.keybindings cycle-panels-backward ['<Shift><Control><Alt>Escape']
org.gnome.desktop.wm.keybindings panel-run-dialog ['<Alt>F2']
org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Primary>Page_Down', '<Control><Alt>Down']
org.gnome.desktop.wm.keybindings move-to-corner-ne ['<Primary><Alt>KP_Prior']
org.gnome.desktop.wm.keybindings move-to-side-e ['<Primary><Alt>KP_Right']
org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Control><Shift><Alt>Right']
org.gnome.desktop.wm.keybindings always-on-top @as []
org.gnome.desktop.wm.keybindings move-to-workspace-up ['<Super><Shift>Page_Up', '<Control><Shift><Alt>Up']
org.gnome.desktop.wm.keybindings raise @as []
org.gnome.desktop.wm.keybindings maximize ['<Primary><Super>Up', '<Super>Up', '<Primary><Alt>KP_5']
org.gnome.desktop.wm.keybindings cycle-group-backward ['<Shift><Alt>F6']
org.gnome.desktop.wm.keybindings move-to-side-n ['<Primary><Alt>KP_Up']
org.gnome.desktop.wm.keybindings move-to-side-s ['<Primary><Alt>KP_Down']
org.gnome.desktop.wm.keybindings maximize-horizontally @as []
org.gnome.desktop.wm.keybindings move-to-side-w ['<Primary><Alt>KP_Left']
org.gnome.desktop.wm.keybindings move-to-corner-nw ['<Primary><Alt>KP_Home']
org.gnome.desktop.wm.keybindings switch-windows @as []
org.gnome.desktop.wm.keybindings begin-move ['<Alt>F7']
org.gnome.desktop.wm.keybindings move-to-monitor-down ['<Super><Shift>Down']
org.gnome.desktop.wm.keybindings switch-windows-backward @as []
org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Control><Shift><Alt>Left']
org.gnome.desktop.wm.keybindings move-to-corner-se ['<Primary><Alt>KP_Next']
org.gnome.desktop.wm.keybindings activate-window-menu ['<Alt>space']
org.gnome.desktop.wm.keybindings switch-input-source ['<Super>space']
org.gnome.desktop.wm.keybindings toggle-above @as []
org.gnome.desktop.wm.keybindings move-to-monitor-right ['<Super><Shift>Right']
org.gnome.desktop.wm.keybindings switch-input-source-backward ['<Shift><Super>space']
org.gnome.desktop.wm.keybindings move-to-workspace-last ['<Super><Shift>End']
org.gnome.desktop.wm.keybindings lower @as []
org.gnome.desktop.wm.keybindings cycle-panels ['<Control><Alt>Escape']
org.gnome.desktop.wm.keybindings toggle-fullscreen @as []
org.gnome.desktop.wm.keybindings toggle-on-all-workspaces @as []
org.gnome.desktop.wm.keybindings move-to-monitor-up ['<Super><Shift>Up']
org.gnome.desktop.wm.keybindings move-to-corner-sw ['<Primary><Alt>KP_End']
org.gnome.desktop.wm.keybindings toggle-shaded ['<Primary><Alt>s']
org.gnome.desktop.wm.keybindings switch-to-workspace-1 ['<Super>Home']
org.gnome.desktop.wm.keybindings switch-to-workspace-2 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-3 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-4 @as []
org.gnome.desktop.wm.keybindings raise-or-lower @as []
org.gnome.desktop.wm.keybindings switch-panels ['<Control><Alt>Tab']
org.gnome.desktop.wm.keybindings switch-panels-backward ['<Shift><Control><Alt>Tab']
org.gnome.desktop.wm.keybindings switch-applications-backward ['<Shift><Super>Tab', '<Shift><Alt>Tab']
org.gnome.desktop.wm.keybindings maximize-vertically @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-7 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-5 @as []
org.gnome.desktop.wm.keybindings show-desktop ['<Primary><Super>d', '<Primary><Alt>d', '<Super>d']
org.gnome.desktop.wm.keybindings switch-to-workspace-8 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-9 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-6 @as []
org.gnome.desktop.wm.keybindings switch-applications ['<Super>Tab', '<Alt>Tab']
org.gnome.desktop.wm.keybindings switch-to-workspace-10 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-11 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-12 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-left @as []
org.gnome.desktop.wm.keybindings toggle-maximized ['<Primary><Alt>KP_5']
org.gnome.desktop.wm.keybindings set-spew-mark @as []
org.gnome.desktop.wm.keybindings begin-resize ['<Alt>F8']
org.gnome.desktop.wm.keybindings move-to-workspace-down ['<Super><Shift>Page_Down', '<Control><Shift><Alt>Down']
org.gnome.desktop.wm.keybindings switch-to-workspace-last ['<Super>End']
org.gnome.desktop.wm.keybindings switch-group-backward ['<Shift><Super>Above_Tab', '<Shift><Alt>Above_Tab']
org.gnome.desktop.wm.keybindings switch-group ['<Super>Above_Tab', '<Alt>Above_Tab']
org.gnome.desktop.wm.keybindings cycle-group ['<Alt>F6']
org.gnome.desktop.wm.keybindings close ['<Alt>F4']
org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Primary>Page_Up', '<Control><Alt>Up']
org.gnome.desktop.wm.keybindings move-to-workspace-1 ['<Super><Shift>Home']
org.gnome.desktop.wm.keybindings move-to-workspace-2 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-3 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-4 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-right @as []

Getters

$ gsettings get org.gnome.mutter.keybindings toggle-tiled-right
['<Primary><Alt>Right', '<Super>Right']
$ gsettings get org.gnome.mutter.keybindings toggle-tiled-left 
['<Primary><Alt>Left', '<Super>Left']

在演出前嘀咕

$ gsettings list-recursively org.gnome.mutter.keybindings        
org.gnome.mutter.keybindings toggle-tiled-right ['<Super>Right']
org.gnome.mutter.keybindings toggle-tiled-left ['<Super>Left']
org.gnome.mutter.keybindings tab-popup-cancel @as []
org.gnome.mutter.keybindings tab-popup-select @as []

组后嘀咕

$ gsettings list-recursively org.gnome.mutter.keybindings                         
org.gnome.mutter.keybindings toggle-tiled-right ['<Super_R>Right']
org.gnome.mutter.keybindings toggle-tiled-left ['<Super_R>Left']
org.gnome.mutter.keybindings tab-popup-cancel @as []
org.gnome.mutter.keybindings tab-popup-select @as []

因此,以上一切都看起来很好 - 但事实上,如果我进入该keyboard工具,它现在看起来像......

在此处输入图片描述

正如您现在所看到的,左右箭头将触发分裂(这当然不是理想的!)

答案1

应该

获取当前设置

gsettings get org.gnome.mutter.keybindings toggle-tiled-right

gsettings get org.gnome.mutter.keybindings toggle-tiled-left

设置Super_R

gsettings set org.gnome.mutter.keybindings toggle-tiled-right "['<Super_R>Right']"

gsettings set org.gnome.mutter.keybindings toggle-tiled-left "['<Super_R>Left']"

相关内容