Skip to content

Commit

Permalink
Merge pull request #695 from o-sdn-o/gui-bridge
Browse files Browse the repository at this point in the history
Allow moving and resizing tile's grips using arrow keys
  • Loading branch information
o-sdn-o authored Dec 17, 2024
2 parents 7d8a277 + 25ed374 commit 03077e3
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 132 deletions.
36 changes: 19 additions & 17 deletions doc/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,23 +468,25 @@ Tiling Window Manager is a window container that organizes the workspace into mu
<key="Alt+Shift+N" action=RunApplication/> <!-- Run default application. -->
</desktop>
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrevPane /> <!-- Focus the previous pane or splitting grip. -->
<key="Ctrl+PageDown" action=TileFocusNextPane /> <!-- Focus the next pane or splitting grip. -->
<key="Alt+Shift+N" action=TileRunApplicatoin /> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<key="Alt+Shift+A" action=TileSelectAllPanes /> <!-- Select all panes. -->
<key="Alt+Shift+'|'">
<action=DropAutoRepeat/> <!-- Don't autorepeat the split action. -->
<action=TileSplitHorizontally/> <!-- Split active panes horizontally. -->
</key>
<key="Alt+Shift+Minus">
<action=DropAutoRepeat/> <!-- Don't autorepeat the split action. -->
<action=TileSplitVertically/> <!-- Split active panes vertically. -->
</key>
<key="Alt+Shift+R" action=TileSplitOrientation /> <!-- Change split orientation. -->
<key="Alt+Shift+S" action=TileSwapPanes /> <!-- Swap two or more panes. -->
<key="Alt+Shift+E" action=TileEqualizeSplitRatio/> <!-- Equalize split ratio. -->
<key="Alt+Shift+F2" action=TileSetManagerTitle /> <!-- Set tiling window manager title using clipboard data. -->
<key="Alt+Shift+W" action=TileClosePane /> <!-- Close active application. -->
<key="Ctrl+PageUp" action=TileFocusPrevPane /> <!-- Focus the previous pane or splitting grip. -->
<key="Ctrl+PageDown" action=TileFocusNextPane /> <!-- Focus the next pane or splitting grip. -->
<key="Alt+Shift+N" action=TileRunApplicatoin /> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<key="Alt+Shift+A" action=TileSelectAllPanes /> <!-- Select all panes. -->
<key="Alt+Shift+'|'" action=TileSplitHorizontally /> <!-- Split active panes horizontally. -->
<key="Alt+Shift+Minus" action=TileSplitVertically /> <!-- Split active panes vertically. -->
<key="Alt+Shift+R" action=TileSplitOrientation /> <!-- Change split orientation. -->
<key="Alt+Shift+S" action=TileSwapPanes /> <!-- Swap two or more panes. -->
<key="Alt+Shift+E" action=TileEqualizeSplitRatio/> <!-- Equalize split ratio. -->
<key="Alt+Shift+F2" action=TileSetManagerTitle /> <!-- Set tiling window manager title using clipboard data. -->
<key="Alt+Shift+W" action=TileClosePane /> <!-- Close active application. -->
<grips key*>
<key="LeftArrow" ><action=TileMoveGrip data="-1, 0"/></key> <!-- Move the split grip to the left. -->
<key="RightArrow"><action=TileMoveGrip data=" 1, 0"/></key> <!-- Move the split grip to the right. -->
<key="UpArrow" ><action=TileMoveGrip data=" 0,-1"/></key> <!-- Move the split grip up. -->
<key="DownArrow" ><action=TileMoveGrip data=" 0, 1"/></key> <!-- Move the split grip down. -->
<key="'-'" ><action=TileResizeGrip data="-1" /></key> <!-- Decrease the split grip width. -->
<key="Shift+'+'" ><action=TileResizeGrip data=" 1" /></key> <!-- Increase the split grip width. -->
</grips>
</tile>
</hotkeys>
</config>
Expand Down
36 changes: 19 additions & 17 deletions doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,23 +903,25 @@ Notes
<key="Alt+Shift+N" action=RunApplication/> <!-- Run default application. -->
</desktop>
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrevPane /> <!-- Focus the previous pane or splitting grip. -->
<key="Ctrl+PageDown" action=TileFocusNextPane /> <!-- Focus the next pane or splitting grip. -->
<key="Alt+Shift+N" action=TileRunApplicatoin /> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<key="Alt+Shift+A" action=TileSelectAllPanes /> <!-- Select all panes. -->
<key="Alt+Shift+'|'">
<action=DropAutoRepeat/> <!-- Don't autorepeat the split action. -->
<action=TileSplitHorizontally/> <!-- Split active panes horizontally. -->
</key>
<key="Alt+Shift+Minus">
<action=DropAutoRepeat/> <!-- Don't autorepeat the split action. -->
<action=TileSplitVertically/> <!-- Split active panes vertically. -->
</key>
<key="Alt+Shift+R" action=TileSplitOrientation /> <!-- Change split orientation. -->
<key="Alt+Shift+S" action=TileSwapPanes /> <!-- Swap two or more panes. -->
<key="Alt+Shift+E" action=TileEqualizeSplitRatio/> <!-- Equalize split ratio. -->
<key="Alt+Shift+F2" action=TileSetManagerTitle /> <!-- Set tiling window manager title using clipboard data. -->
<key="Alt+Shift+W" action=TileClosePane /> <!-- Close active application. -->
<key="Ctrl+PageUp" action=TileFocusPrevPane /> <!-- Focus the previous pane or splitting grip. -->
<key="Ctrl+PageDown" action=TileFocusNextPane /> <!-- Focus the next pane or splitting grip. -->
<key="Alt+Shift+N" action=TileRunApplicatoin /> <!-- Launch application instances in active empty slots. The app to run can be set by RightClick on the taskbar. -->
<key="Alt+Shift+A" action=TileSelectAllPanes /> <!-- Select all panes. -->
<key="Alt+Shift+'|'" action=TileSplitHorizontally /> <!-- Split active panes horizontally. -->
<key="Alt+Shift+Minus" action=TileSplitVertically /> <!-- Split active panes vertically. -->
<key="Alt+Shift+R" action=TileSplitOrientation /> <!-- Change split orientation. -->
<key="Alt+Shift+S" action=TileSwapPanes /> <!-- Swap two or more panes. -->
<key="Alt+Shift+E" action=TileEqualizeSplitRatio/> <!-- Equalize split ratio. -->
<key="Alt+Shift+F2" action=TileSetManagerTitle /> <!-- Set tiling window manager title using clipboard data. -->
<key="Alt+Shift+W" action=TileClosePane /> <!-- Close active application. -->
<grips key*>
<key="LeftArrow" ><action=TileMoveGrip data="-1, 0"/></key> <!-- Move the split grip to the left. -->
<key="RightArrow"><action=TileMoveGrip data=" 1, 0"/></key> <!-- Move the split grip to the right. -->
<key="UpArrow" ><action=TileMoveGrip data=" 0,-1"/></key> <!-- Move the split grip up. -->
<key="DownArrow" ><action=TileMoveGrip data=" 0, 1"/></key> <!-- Move the split grip down. -->
<key="'-'" ><action=TileResizeGrip data="-1" /></key> <!-- Decrease the split grip width. -->
<key="Shift+'+'" ><action=TileResizeGrip data=" 1" /></key> <!-- Increase the split grip width. -->
</grips>
</tile>
<terminal key*> <!-- Application specific layer key bindings. -->
<key="Ctrl-Alt | Alt-Ctrl" preview action=ExclusiveKeyboardMode/> <!-- Toggle exclusive keyboard mode by pressing and releasing Ctrl-Alt or Alt-Ctrl (reversed release order). -->
Expand Down
6 changes: 6 additions & 0 deletions doc/user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@
<tr><th>Alt+Shift+E</th> <td>Equalize split ratio.</td></tr>
<tr><th>Alt+Shift+F2</th> <td>Set tiling window manager title using clipboard data.</td></tr>
<tr><th>Alt+Shift+W</th> <td>Close active application.</td></tr>
<tr><th>LeftArrow</th> <td>Move the split grip to the left.</td></tr>
<tr><th>RightArrow</th> <td>Move the split grip to the right.</td></tr>
<tr><th>UpArrow</th> <td>Move the split grip up.</td></tr>
<tr><th>DownArrow</th> <td>Move the split grip down.</td></tr>
<tr><th>'-'</th> <td>Decrease the split grip width.</td></tr>
<tr><th>Shift+'+'</th> <td>Increase the split grip width.</td></tr>
</tbody>
</table>

Expand Down
Loading

0 comments on commit 03077e3

Please sign in to comment.