gsettings set org.gnome.desktop.wm.keybindings move-to-center "['<Control><Super>c']"
gsettings set org.gnome.desktop.wm.keybindings move-to-side-e "['<Control><Super>Right']"
gsettings set org.gnome.desktop.wm.keybindings move-to-side-n "['<Control><Super>Up']"
gsettings set org.gnome.desktop.wm.keybindings move-to-side-s "['<Control><Super>Down']"
gsettings set org.gnome.desktop.wm.keybindings move-to-side-w "['<Control><Super>Left']"
这些是我定义的键绑定。您可以通过首先编辑命令来选择使用不同的键绑定。
• 将窗口定位在屏幕的某个角落
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-ne "['<Control><Super>2']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-nw "['<Control><Super>1']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-se "['<Control><Super>4']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-sw ['<Control><Super>3']"
• 横向和纵向最大化
gsettings set org.gnome.desktop.wm.keybindings maximize-horizontally "['<Control><Super>equal']"
gsettings set org.gnome.desktop.wm.keybindings maximize-vertically "['<Control><Super>backslash']"
在 Ubuntu 中,默认设置了一些键盘快捷键:
此外,键设置为使用键盘移动和调整大小:
使用隐藏的配置设置,可以定义更多用于窗口操作的自定义快捷方式。以下配置命令将为以下设置快捷键:
• 使窗口居中或快速移动到屏幕一侧
这些是我定义的键绑定。您可以通过首先编辑命令来选择使用不同的键绑定。
• 将窗口定位在屏幕的某个角落
• 横向和纵向最大化
这些设置也可以使用该实用程序进行设置
dconf-editor
。