Ubuntu 20.04.3 LTS Gnome 3.36.8
尝试过:
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "[\"<Shift><Super>parenleft\"]"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-10 "[\"<Shift><Super>parenright\"]"
但它不起作用。这些名字来自:
xmodmap -pk
and
xev
对于工作区 10 的其他键(例如“braceright”)有效,其余的也有效:
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 ['<Shift><Super>exclam']
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 ['<Shift><Super>at']
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 ['<Shift><Super>numbersign']
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "[\"<Shift><Super>percent"]"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "[\"<Shift><Super>asciicircum\"]"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "[\"<Shift><Super>ampersand\"]"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "[\"<Shift><Super>asterisk\"]"
我找不到问题所在。我使用切换到工作流 1->0,并且我也想使用它们来移动窗口。
答案1
出于某种原因,即使涉及“shift”,仍然必须在这里使用数字:
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "[\"<Shift><Super>9\"]"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-10 "[\"<Shift><Super>0\"]"
但对于数字“2”:
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 ['<Shift><Super>at']
对于 switch-to-workspace-2 我有:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 ['<Super>2']