在Gnome(gnome-shell)中,您可以设置多个快捷键而不是一个吗? [英] In Gnome (gnome-shell) can you set multiple shortcut keys instead of just a single?

查看:90
本文介绍了在Gnome(gnome-shell)中,您可以设置多个快捷键而不是一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gnome GUI(gnome-shell)仅允许您设置一个快捷键.例如,您能否将 Super + Tab Alt + Tab 设置为两个交换应用程序?

The Gnome GUI (gnome-shell) only lets you set a single shortcut key. Can you for instance set Super+Tab and Alt+Tab to both switch applications?

推荐答案

是的,可以.经过验证,可以在Ubuntu 20.10和21.04RC上使用.

Yes, you can. This is verified to work on Ubuntu 20.10 and 21.04RC.

以下命令可实现请求的结果:

The following commands acheive the requested outcome:

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']"

有关更多选项,请参见此处:

For more options see here:

# 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

来自此处.

这篇关于在Gnome(gnome-shell)中,您可以设置多个快捷键而不是一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆