linux - 如何在 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
如果需要,我可以修补。但我不知道补丁中应该包含什么:)
我的环境
- 侏儒外壳 3.36.4
- Ubuntu 20.04
解决方案
我通过使用easystroke
包解决了我的问题
sudo apt-get install easystroke
推荐阅读
- swift - Xcode FIREBASE 崩溃
- javascript - 如何在 javascript 中的 1 个画布上同时显示多个动画
- python - C 中的 Python 扩展 - 元类
- java - 文件对象的数组列表getname为空字符串问题
- android - 二进制 XML 文件第 27 行:二进制 XML 文件第 27 行:膨胀类 TextView 时出错
- python - 命名空间的 DRF 路由器问题
- python - Python Flask WTForms 依赖下拉列表
- mysql - mySQL 下班时间记录
- sql-server - 调用另一个 asmx 服务方法时,SQLConnection 事务字段值变为空(null)
- android - ExoPlayer:使用视频文件在后台播放声音