gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 9
for i in {1..9}; do
gsettings set "org.gnome.shell.keybindings" "switch-to-application-$i" "[]"
gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-$i" "['<Super>${i}']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-${i} "['<Super><Shift>${i}']"
done
经过一些研究,我发现从 Gnome 40 开始,您可以这样做:
愿你的 htop 统计数据低,你的胡须长长!