-
Notifications
You must be signed in to change notification settings - Fork 4
Tiling & Snapping
Ian LeCorbeau edited this page Apr 6, 2020
·
1 revision
Note: there will be gaps between windows
Mod4 + c: center the current window in full screen
<!-- Center the Current Window -->
<keybind key="C-W-c">
<action name="MoveResizeTo">
<x>center</x>
<y>center</y>
<width>99%</width>
<height>99%</height>
</action>
</keybind>
Ctrl + Mod4 + v
: tile the active and previously active window vertically
ctrl + Mod4 + h
: tile the active and previously active window horizontally
<!-- Vertical tiling -->
<keybind key="C-W-v">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<width>49%</width>
<height>98%</height>
</action>
<action name="UnmaximizeVert"/>
<action name="MoveResizeTo">
<x>12</x>
<y>10</y>
</action>
<action name="NextWindow">
<interactive>no</interactive>
<dialog>none</dialog>
<finalactions>
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<width>49%</width>
<height>98%</height>
</action>
<action name="UnmaximizeVert"/>
<action name="MoveResizeTo">
<x>-12</x>
<y>10</y>
</action>
</finalactions>
</action>
</keybind>
<!-- Horizontal tiling -->
<keybind key="C-W-h">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>98%</width>
<height>49%</height>
</action>
<action name="MaximizeHorz"/>
<action name="MoveResizeTo">
<x>12</x>
<y>10</y>
</action>
<action name="NextWindow">
<interactive>no</interactive>
<dialog>none</dialog>
<finalactions>
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<width>98%</width>
<height>49%</height>
</action>
<action name="MaximizeHorz"/>
<action name="MoveResizeTo">
<x>-12</x>
<y>-10</y>
</action>
</finalactions>
</action>
</keybind>
Mod4 + a
: move active window to the left half of the screen
Mod4 + l
: move active window to the right half of the screen
Mod4 + s
: move active window to the top left corner of the screen
Mod4 + k
: move active window to the top right corner of the screen
Mod4 + d
: move active window to the bottom left of the screen
Mod4 + j
: move active window to the bottom right of the screen
Mod4 + f
: move active window to the top half of the screen
Mod4 + h
: move active window to the bottom half of the screen
<!-- Move the Current Window to the Left Half of the Screen -->
<keybind key="W-a">
<action name="MoveResizeTo">
<x>10</x>
<y>10</y>
<width>49%</width>
<height>99%</height>
</action>
</keybind>
<!-- Move the Current Window to the Right Half of the Screen -->
<keybind key="W-l">
<action name="MoveResizeTo">
<x>-10</x>
<y>10</y>
<width>49%</width>
<height>99%</height>
</action>
</keybind>
<!-- Move the Current Window to the Top Left of the Screen -->
<keybind key="W-s">
<action name="MoveResizeTo">
<x>10</x>
<y>10</y>
<width>49%</width>
<height>49%</height>
</action>
</keybind>
<!-- Move the Current Window to the Top right of the Screen -->
<keybind key="W-k">
<action name="MoveResizeTo">
<x>-10</x>
<y>10</y>
<width>49%</width>
<height>49%</height>
</action>
</keybind>
<!-- Move the Current Window to the Bottom Left of the Screen -->
<keybind key="W-d">
<action name="MoveResizeTo">
<x>10</x>
<y>-10</y>
<width>49%</width>
<height>49%</height>
</action>
</keybind>
<!-- Move the Current Window to the Bottom Right of the Screen -->
<keybind key="W-j">
<action name="MoveResizeTo">
<x>-10</x>
<y>-10</y>
<width>49%</width>
<height>49%</height>
</action>
</keybind>
<!-- Move the Current Window to the Top of the Screen -->
<keybind key="W-f">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>10</x>
<y>10</y>
<width>99%</width>
<height>49%</height>
</action>
</keybind>
<!-- Move the Current Window to the Bottom of the Screen -->
<keybind key="W-h">
<action name="Unmaximize"/>
<action name="MoveResizeTo">
<x>-10</x>
<y>-10</y>
<width>99%</width>
<height>49%</height>
</action>
</keybind>