在 Gnome (gnome-shell) 中,您可以设置多个快捷键而不是一个吗?
In Gnome (gnome-shell) can you set multiple shortcut keys instead of just a single?
Gnome GUI (gnome-shell) 只允许您设置一个快捷键。例如,您可以设置 Super+Tab 和 Alt+Tab 到两个切换应用程序?
是的,你可以。这已验证适用于 Ubuntu 20.10 和 21.04RC。
以下命令可实现请求的结果:
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Super>Tab', '<Shift><Alt>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Super>Tab', '<Alt>Tab']"
有关更多选项,请参见此处:
# list all keybindings
gsettings list-recursively | grep -e org.gnome.desktop.wm.keybindings -e org.gnome.settings-daemon.plugins.media-keys -e org.gnome.settings-daemon.plugins.power | sort
# confirm no other keybinding conflicts
gsettings list-recursively | grep '<Control>1'
# set multiple keybindings for "Switch to Workspace 1"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>Home', '<Control>1']"
# confirm value is set correctly
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-1
来自 here.
Gnome GUI (gnome-shell) 只允许您设置一个快捷键。例如,您可以设置 Super+Tab 和 Alt+Tab 到两个切换应用程序?
是的,你可以。这已验证适用于 Ubuntu 20.10 和 21.04RC。
以下命令可实现请求的结果:
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Super>Tab', '<Shift><Alt>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Super>Tab', '<Alt>Tab']"
有关更多选项,请参见此处:
# list all keybindings
gsettings list-recursively | grep -e org.gnome.desktop.wm.keybindings -e org.gnome.settings-daemon.plugins.media-keys -e org.gnome.settings-daemon.plugins.power | sort
# confirm no other keybinding conflicts
gsettings list-recursively | grep '<Control>1'
# set multiple keybindings for "Switch to Workspace 1"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['<Super>Home', '<Control>1']"
# confirm value is set correctly
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-1
来自 here.