如何在GNOME Shell中使用alt +鼠标左键禁用窗口移动?
有很多关于Unity的post , 这是关于GNOME shell的 。
与其他海报一样,我使用的是使用Alt -Click和Alt -drag的应用程序(特别是Inkscape)。 GNOME shell正在抓住这个,从而禁用了应用程序中的function。
我试过了
-
使用ccsm的Move插件 – 你可以关闭它,你仍然可以移动Alt-drag窗口。
-
使用gconf编辑器更改
/apps/metacity/general/mouse_button_modifier
– 这对/apps/metacity/general/mouse_button_modifier
没有影响。
这真的是在阻碍我。 否则,我发现GNOME shell是一个非常高效的环境。
首先,安装dconf-tools 。
为此,请运行以下命令:
sudo apt-get install dconf-tools
然后打开它, Alt + F2 → dconf-editor
。
向下滚动到org
→ gnome
→ desktop
→ wm
→ preferences
→ mouse-button-modifier
→将其设置为您喜欢的任何一个键。
或者,等效地,
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier ""
在终端。 (这既不需要dconf-editor
,也不需要dconf-tools )
警告:将其设置为空意味着所有点击都会移动窗口,而不是禁用它!
要解决Alt + Click移动窗口拖动问题:
sudo gconftool-2 --set /org/gnome/desktop/wm/preferences/mouse-button-modifier --type string ''
同样的事情,真的,只是使用不同的配置工具,并减少搜索和点击。
对于使用dconf / gsettings的较新版本,请使用:
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier ""
使用调整工具( gnome-tweak-tool
):
Windows>窗口操作键
我将Alt + Super设置为临时解决方案。 所以我可以在Inkscape和Super中使用Alt键进行活动。
在UBUNTU 14.04 LTS中使用dconf语法之类的
对我来说效果很好。
顺便说一句:如果你设置错误,它会在每次点击时开始移动窗口。 用于导航到“设为默认值”按钮。 并打了。
在Mint中,可以在system settings
> windows
> behavior
> 'Special key to move and resize window'
更改或禁用
- 转到系统设置
- 选择键盘
- 在左下角点击’布局设置’
- 选择您的语言,然后单击右下方的“选项”按钮
- 选择“Alt / Win键行为”
- 把它改成你喜欢的那个。 我使用’Left Alt与Left Win交换’。
在CentOS 7中,我不得不使用
gsettings set org.gnome.desktop.wm.keybindings activate-window-menu "['F10']"
此设置未指定,这意味着鼠标中键激活了窗口菜单。 甚至设定
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier ''
没有把这个动作移到Alt-middle; 我不得不绑定activate-window-menu
。