【问题标题】:In Gnome (gnome-shell) can you set multiple shortcut keys instead of just a single?在 Gnome (gnome-shell) 中,您可以设置多个快捷键而不是单个快捷键吗?
【发布时间】:2021-04-07 16:49:55
【问题描述】:

Gnome GUI (gnome-shell) 只允许您设置一个快捷键。例如,您可以将 Super+TabAlt+Tab 设置为两个切换应用程序吗?

【问题讨论】:

    标签: gnome gnome-shell


    【解决方案1】:

    是的,你可以。这经验证可在 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-08
      • 2022-06-26
      • 2012-04-23
      • 2011-10-10
      • 2013-10-22
      • 2014-11-04
      相关资源
      最近更新 更多