如何使 imwheel 将大多数修饰符操作保留为默认值?

如何使 imwheel 将大多数修饰符操作保留为默认值?

我是尝试shift使用+进行水平滚动scroll wheel。我尝试过使用imwheel,使用以下内容~/.imwheelrc

".*"
Shift_L, Up, Left
Shift_L, Down, Right

然后我就跑了imwheel -b 45。这使得shift+scroll wheel按预期工作。

但是,它会阻止传递一些其他默认事件,例如ctrl+scroll wheelsuper+ 。scroll wheel相反,这些似乎被解释为正常的(未经修改的)卷轴。

我尝试将类似 in 的内容放入Control_L, Up, Control_L|Up其中~/.imwheelrc,但这不起作用。

答案1

Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

在你的 .imwheelrc 中应该可以解决问题。请务必重新启动 imwheel 以使更改生效。请注意,多次启动 imwheel 会导致未定义的行为。

编辑

根据OP的反馈,关键是映射到Button4/Button5而不是Up/ Down。因此,接下来是工作~/.imwheelrc,然后是运行imwheel -b 45。 (为了完整起见,我还考虑了AltHyperMeta右侧键。)

".*"
Shift_L, Up, Left
Shift_L, Down, Right
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Super_L, Up, Super_L|Button4
Super_L, Down, Super_L|Button5
Alt_L, Up, Alt_L|Button4
Alt_L, Down, Alt_L|Button5
Hyper_L, Up, Hyper_L|Button4
Hyper_L, Down, Hyper_L|Button5
Meta_L, Up, Meta_L|Button4
Meta_L, Down, Meta_L|Button5
Shift_R, Up, Left
Shift_R, Down, Right
Control_R, Up,   Control_R|Button4
Control_R, Down, Control_R|Button5
Super_R, Up, Super_R|Button4
Super_R, Down, Super_R|Button5
Alt_R, Up, Alt_R|Button4
Alt_R, Down, Alt_R|Button5
Hyper_R, Up, Hyper_R|Button4
Hyper_R, Down, Hyper_R|Button5
Meta_R, Up, Meta_R|Button4
Meta_R, Down, Meta_R|Button5

相关内容