我正在Debian10Buster系统上运行OpenBox,我希望将它配置为像一个平铺窗口管理器一样运行。我知道OpenBox是一个堆叠窗口管理器,但是由于它是很好的可定制的,所以我相信我们可以组合一些东西。但是我不知道怎么做。
发布于 2020-03-22 13:00:24
不要期望OpenBox表现得像一个平铺窗口管理器,因为正如您所说的,它是一个堆叠窗口管理器。但是,您可以使用一些脚本对其进行调整,以添加一些平铺WM功能。
看看pytyle (手册和GitHub页面)、zentile和Openbox-tiling。我从未试过最后一个脚本,但前两个脚本在我的系统中发挥了很大的魅力。顺便说一下,zentile更容易安装:只需下载可执行文件,使其在您的系统上可执行,并在~/.config/openbox/autostart文件中添加行path_to_zentile/zentile_linx_amd64 &。您可以更改~/.config/openbox/zentile/conf.toml文件中的键绑定。
发布于 2020-05-01 19:29:14
实际上,使用Openbox是可能的。在这个设置(放入rc.xml)中,Alt+keypad将活动窗口移动到基数位置,Alt+KP5将其最大化,而Alt+KP0将使窗口最小化:
<!-- Keybindings for tiling -->
<keybind key="A-KP_5">
<action name="ToggleMaximize"/>
</keybind>
<keybind key="A-KP_0">
<action name="Iconify"/>
</keybind>
<keybind key="A-KP_4">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="A-KP_6">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="A-KP_8">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="A-KP_2">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="A-KP_7">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="A-KP_9">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="A-KP_1">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="A-KP_3">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>-0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>参考资料和进一步阅读:
https://unix.stackexchange.com/questions/574248
复制相似问题