使用 Unity 中的 Compiz,我可以按Ctrl+ Alt+6将窗口放置在屏幕的右半部分,按Ctrl+ Alt+4将窗口放置在左半部分,按Ctrl+ Alt+7将窗口放置在屏幕的左上角,依此类推。Gnome-Shell 中是否有类似的东西?
答案1
安装 gconf-editor。
sudo apt-get install gconf-editor
现在,运行 gconf-editor ( Alt+ F2gconf-editor)
转到 apps/metacity/window_keybindings 并根据您的喜好编辑 move_to_center / move_to_corner 条目。(见截图:)
答案2
您可以使用Ctrl++Super任意箭头键。
答案3
尝试把窗户GNOME Shell 扩展,据称是 Compiz Put 插件的完全可定制替代品。
答案4
Ubuntu 18.04+(带有 GNOME)支持使用键盘放置窗口,但默认情况下快捷方式是禁用的。
要设置快捷方式(也称为键绑定),您可以gsettings
在命令行上使用或使用dconf-editor
应用程序。
例如,设置将窗口移动到左下角的键绑定:
$ gsettings set org.gnome.desktop.wm.keybindings move-to-corner-sw "['<Control><Super>j']"
查看所有可用的键绑定:
$ gsettings list-recursively org.gnome.desktop.wm.keybindings | grep move-to | sort
org.gnome.desktop.wm.keybindings move-to-center ['<Control><Super>i']
org.gnome.desktop.wm.keybindings move-to-corner-nw ['<Control><Super>7']
org.gnome.desktop.wm.keybindings move-to-corner-ne ['<Control><Super>9']
org.gnome.desktop.wm.keybindings move-to-corner-sw ['<Control><Super>j']
org.gnome.desktop.wm.keybindings move-to-corner-se ['<Control><Super>l']
org.gnome.desktop.wm.keybindings move-to-side-e ['<Control><Super>o']
org.gnome.desktop.wm.keybindings move-to-side-n ['<Control><Super>8']
org.gnome.desktop.wm.keybindings move-to-side-s ['<Control><Super>k']
org.gnome.desktop.wm.keybindings move-to-side-w ['<Control><Super>u']
org.gnome.desktop.wm.keybindings move-to-monitor-up ['<Super><Shift>Up']
org.gnome.desktop.wm.keybindings move-to-monitor-down ['<Super><Shift>Down']
org.gnome.desktop.wm.keybindings move-to-monitor-left ['<Super><Shift>Left']
org.gnome.desktop.wm.keybindings move-to-monitor-right ['<Super><Shift>Right']
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 move-to-workspace-5 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-6 @as []
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-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-workspace-up ['<Super><Shift>Page_Up', '<Control><Shift><Alt>Up']
org.gnome.desktop.wm.keybindings move-to-workspace-down ['<Super><Shift>Page_Down', '<Control><Shift><Alt>Down']
org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Control><Shift><Alt>Left']
org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Control><Shift><Alt>Right']
org.gnome.desktop.wm.keybindings move-to-workspace-last ['<Super><Shift>End']