使用 Unity 中的 Compiz,我可以按Ctrl+ Alt+6將視窗放置在螢幕的右半部分,Ctrl+ Alt+4將其放置在左半部分,Ctrl+ Alt+7將其放置在螢幕的左上角,依此類推。 Gnome-Shell 中有類似的東西嗎?
答案1
安裝 gconf 編輯器。
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']