我尝试在任何应用程序中分配assign ++ Ctrl,但系统不会将热键传递给应用程序。例如,任何其他热键都会正常传递给VC Code。我如何从Ubuntu系统中释放热键以供自己使用?AltUp/Down
我尝试在 VC 代码中分配 Ctrl+Alt+Up/Down
我认为 Ubuntu 保留了这些用于在桌面之间切换的快捷方式。我在设置中将用于在桌面之间切换的快捷方式更改为Super+ Alt+ Up/Down,但问题仍然存在。
答案1
释放系统的Ctrl+ Alt+热键,并将桌面之间的切换分配给+ +ARROWSuperAltARROW
查看所有可更改的热键列表
gsettings list-recursively | grep org.gnome.desktop.wm.keybindings
检查系统使用哪些热键在桌面之间切换
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-left gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-right gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-up gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-down
释放系统使用的热键Ctrl++AltARROW
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "[]"
将桌面之间的切换分配给Super+ Alt+ARROW
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super><Alt>Left']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super><Alt>Right']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super><Alt>Up']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super><Alt>Down']"
祝你好运!