首页 > 解决方案 > 如何在 Gnome 概览中使用 xbindkeys 切换工作区?

问题描述

这是我的~/.xbindkeysrc配置:

"gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'imports.ui.main.wm._showWorkspaceSwitcher(global.display, null, { get_name() { return `switch-to-workspace-down` } });'"
   b:8

"gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'imports.ui.main.wm._showWorkspaceSwitcher(global.display, null, { get_name() { return `switch-to-workspace-up` } });'"
   b:9

它将工作区切换分配给我的鼠标按钮。它适用于任何地方,但在 Gnome 概览中(当您按下 Super 键时,您可以看到此概览)。有什么可以解决的吗?

gnome-shell如果需要,我可以修补。但我不知道补丁中应该包含什么:)

我的环境

标签: linuxubuntugnomegnome-shell

解决方案


我通过使用easystroke包解决了我的问题

sudo apt-get install easystroke

推荐阅读