更改平鋪視窗位置快捷鍵
~/.config/openbox/rc.xml
code:rc.xml
<!--
Lubuntu specific.
Keybindings for window tiling
-->
<!--
# HalfLeftScreen
-->
<keybind key="C-W-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<height>100%</height>
<width>50%</width>
</action>
</keybind>
<!--
# HalfRightScreen
-->
<keybind key="C-W-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<height>100%</height>
<width>50%</width>
</action>
</keybind>
<!--
# HalfUpperScreen
-->
<keybind key="C-W-Up">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<!--
# HalfLowerScreen
-->
<keybind key="C-W-Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<!--
# LeftUpperScreen
-->
<keybind key="C-W-u">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<!--
# HalfRightScreen
-->
<keybind key="C-W-i">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<height>50%</height>
<width>50%</width>
</action>
</keybind>
<!--
# HalfLowerScreen
-->
<keybind key="C-W-j">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<!--
# HalfLowerScreen
-->
<keybind key="C-W-k">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
$ openbox --reconfigure