ben*_*enj 8 linux-mint workspaces cinnamon
我想设置 cinnamon 以在我向右或向左按下鼠标滚轮点击器时左右切换工作区,但在 cinnamon 设置中没有看到选项。有什么办法可以做到这一点吗?
[我认为这最适合作为单独的答案列出,2.5 年后]
在 的帮助下可以做到这一点xbindkeys
。
安装 ( #apt-get install xbindkeys
),然后将其添加到以下内容的底部~/.xbindkeysrc
:
# Previous desktop
"dbus-send --session --type=method_call --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.switchWorkspaceLeft"
b:6
# Next desktop
"dbus-send --session --type=method_call --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.switchWorkspaceRight"
b:7
Run Code Online (Sandbox Code Playgroud)
(b:6
和b:7
分别是对我的鼠标滚轮的左,右摇杆按钮-因人而异;利用xev
制定出正确的索引)。
xbindkeys
应该自动重新加载自己的配置,但您可能需要使用killall -HUP xbindkeys
. 首次安装后,您可能还需要注销并重新登录。