Jul*_*ann 6 openbox tiling-wm lxde rc mouse-gestures
我正在尝试编辑lxde-rc.xml
文件(在~/.config/openbox
),以便我可以像在 Microsoft Windows 中一样实现窗口捕捉。当一个窗口被拖动到屏幕的右边缘时,它会最大化以填满屏幕的右半部分。我不想使用平铺 wm,而是编辑 openbox 的配置。我找到了可以使用键盘快捷键执行此操作的代码:
<!-- Fill left half of desktop -->
<keybind key="C-W-Left">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>99%</height>
<width>50%</width>
</action>
</keybind>
<!-- Fill right half of desktop -->
<keybind key="C-W-Right">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<height>99%</height>
<width>50%</width>
</action>
</keybind>
Run Code Online (Sandbox Code Playgroud)
我当前(也是默认)配置将窗口拖到屏幕边缘时会将其移动到下一个桌面,因此配置文件中必须已经存在某种绑定。但是,配置文件中切换桌面的唯一操作是通过键盘快捷键和在桌面上滚动来调用的。
我有两个问题:
当窗口被拖动到屏幕边缘时,鼠标绑定会像什么一样切换动作,并且:
为什么该操作的当前行为未在 中引用lxde-rc.xml
?
提前致谢!
小智 1
拖动到屏幕边缘时通过鼠标绑定来切换操作:似乎没有一种明显的方法可以让 Openbox 检测将窗口拖动到屏幕边缘作为操作<mousebind>
。从根本上设置热点可能是最简单的,例如使用xdotool中的Bebee_screen_edge,并使用它们来触发您已经找到的 Openbox 键绑定。
是什么让 Openbox 通过将窗口拖动到屏幕边缘来将窗口发送到其他桌面?这是设置在<screenEdgeWarpTime>
. 我的示例rc.xml
,在<mouse>
本节中:
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3249 次 |
最近记录: |