Skip to content

Commit

Permalink
directvt#86 WIP: Revise desktop key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Dec 20, 2024
1 parent 47f68b2 commit 4343907
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 80 deletions.
7 changes: 0 additions & 7 deletions doc/apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,13 +462,6 @@ Tiling Window Manager is a window container that organizes the workspace into mu
</menu>
</tile>
<hotkeys> <!-- The required key combination sequence can be generated on the Info page, accessible by clicking on the label in the lower right corner of the vtm desktop. -->
<desktop key*> <!-- Desktop layer key bindings. -->
<key="Ctrl+PageUp" action=FocusPrevWindow/> <!-- Switch focus to the next desktop window. -->
<key="Ctrl+PageDown" action=FocusNextWindow/> <!-- Switch focus to the previous desktop window. -->
<key="Shift+F7" action=Disconnect/> <!-- Disconnect from the desktop. -->
<key="F10" preview action=TryToQuit/> <!-- Shut down the desktop server if no applications are running. -->
<key="Alt+Shift+N" action=RunApplication/> <!-- Run default application. -->
</desktop>
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrev /> <!-- Focus the previous pane or the split grip. -->
<key="Ctrl+PageDown" action=TileFocusNext /> <!-- Focus the next pane or the split grip. -->
Expand Down
37 changes: 11 additions & 26 deletions doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,38 +903,23 @@ Notes
<key="Shift+F7" action=Disconnect/> <!-- Disconnect from the desktop. -->
<key="F10" preview action=TryToQuit/> <!-- Shut down the desktop server if no applications are running. -->
<key="Alt+Shift+N" action=RunApplication/> <!-- Run default application. -->
<key="" action=AlwaysOnTopWindow/><!-- Toggle AlwaysOnTop flag on all focused windows. -->
<key="" action=CloseWindow/> <!-- Close all focused desktop windows. -->
<key="" action=MinimizeWindow/> <!-- Minimize all focused desktop windows. -->
<key="Esc+F11" action=MaximizeWindow/> <!-- Maximize all focused desktop windows. -->
<key="Esc+F12" action=FullscreenWindow/> <!-- Fullscreen the first focused desktop window. -->
<key="" action=AlwaysOnTopWindow/><!-- Toggle AlwaysOnTop window flag. -->
<key="" action=CloseWindow/> <!-- Close window. -->
<key="" action=MinimizeWindow/> <!-- Minimize window. -->
<key="Esc+F11" action=MaximizeWindow/> <!-- Maximize window. -->
<key="Esc+F12" action=FullscreenWindow/> <!-- Maximize window to full screen. -->

<key=""><action=WarpWindow data="0,0,0,0"/></key> <!-- Warp desktop window. The data parameter specifies four deltas for the left, right, top and bottom window sides. -->
<key="Esc+'=' | Esc+'+'"> <action=WarpWindow data=" 1, 1, 1, 1"/></key> <!-- Increase window size. -->
<key="Esc+'-'"> <action=WarpWindow data="-1,-1,-1,-1"/></key> <!-- Reduce window size. --> </desktop>
<key="Esc+LeftArrow"> <action=WarpWindow data=" 1,-1, 0, 0"/></key> <!-- Move window to the left. -->
<key="Esc+RightArrow"> <action=WarpWindow data="-1, 1, 0, 0"/></key> <!-- Move window to the right. -->
<key="Esc+UpArrow"> <action=WarpWindow data=" 0, 0, 1,-1"/></key> <!-- Move window up. -->
<key="Esc+DownArrow"> <action=WarpWindow data=" 0, 0,-1, 1"/></key> <!-- Move window down. -->

<key="Esc+LeftArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 0,-1"/></key> <!-- Move bottom side of window up. -->
<key="Esc+LeftArrow+DownArrow"> <action=WarpWindow data=" 0, 0, 0, 1"/></key> <!-- Move bottom side of window down. -->
<key="Esc+RightArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 1, 0"/></key> <!-- Move top side of window up. -->
<key="Esc+RightArrow+DownArrow"> <action=WarpWindow data=" 0, 0,-1, 0"/></key> <!-- Move top side of window down. -->

<key="Esc+UpArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 0, 0"/></key> <!-- Move left side of window to left. -->
<key="Esc+UpArrow+RightArrow"> <action=WarpWindow data="-1, 0, 0, 0"/></key> <!-- Move left side of window to right. -->
<key="Esc+DownArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 0, 0"/></key> <!-- Move right side of window to right. -->
<key="Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0, 0"/></key> <!-- Move right side of window to left. -->

<key="Ctrl+LeftArrow+DownArrow | Ctrl+DownArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 0, 1"/></key> <!-- Move the bottom left corner of the window outward. -->
<key="Ctrl+RightArrow+DownArrow | Ctrl+DownArrow+RightArrow"><action=WarpWindow data=" 0, 1, 0, 1"/></key> <!-- Move the bottom right corner outside. -->
<key="Ctrl+LeftArrow+UpArrow | Ctrl+UpArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 1, 0"/></key> <!-- Move the top left corner of the window outward. -->
<key="Ctrl+RightArrow+UpArrow | Ctrl+UpArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 1, 0"/></key> <!-- Move the top right corner of the window outward. -->

<key="Alt+LeftArrow+DownArrow | Alt+DownArrow+LeftArrow"> <action=WarpWindow data=" 0,-1,-1, 0"/></key> <!-- Move the top left corner of the window inward. -->
<key="Alt+RightArrow+DownArrow | Alt+DownArrow+RightArrow"> <action=WarpWindow data="-1, 0,-1, 0"/></key> <!-- Move the top right corner of the window inward. -->
<key="Alt+LeftArrow+UpArrow | Alt+UpArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0,-1"/></key> <!-- Move the bottom left corner of the window inward. -->
<key="Alt+RightArrow+UpArrow | Alt+UpArrow+RightArrow"> <action=WarpWindow data="-1, 0, 0,-1"/></key> <!-- Move the bottom right corner of the window inward. -->
</desktop>
<key="Esc+LeftArrow+UpArrow | Esc+UpArrow+LeftArrow"> <action=WarpWindow data=" 2,-2, 1,-1"/></key> <!-- Move window to the top-left. -->
<key="Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 2,-2,-1, 1"/></key> <!-- Move window to the bottom-left. -->
<key="Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow"> <action=WarpWindow data="-2, 2, 1,-1"/></key> <!-- Move window to the top-right. -->
<key="Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow"> <action=WarpWindow data="-2, 2,-1, 1"/></key> <!-- Move window to the bottom-right. -->
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrev /> <!-- Focus the previous pane or the split grip. -->
<key="Ctrl+PageDown" action=TileFocusNext /> <!-- Focus the next pane or the split grip. -->
Expand Down
34 changes: 12 additions & 22 deletions doc/user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,28 +154,18 @@
<td colspan="7">Horizontal scrolling</td>
<td colspan="2"></td>
</tr>
<tr><th>Esc+F11</th> <td colspan="3"></td><td colspan="7">Maximize all focused desktop windows</td></tr>
<tr><th>Esc+F12</th> <td colspan="3"></td><td colspan="7">Fullscreen the first focused desktop window</td></tr>
<tr><th>Esc+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move window to the left</td></tr>
<tr><th>Esc+RightArrow</th> <td colspan="3"></td><td colspan="7">Move window to the right</td></tr>
<tr><th>Esc+UpArrow</th> <td colspan="3"></td><td colspan="7">Move window up</td></tr>
<tr><th>Esc+DownArrow</th> <td colspan="3"></td><td colspan="7">Move window down</td></tr>
<tr><th>Esc+LeftArrow+UpArrow</th> <td colspan="3"></td><td colspan="7">Move bottom side of window up</td></tr>
<tr><th>Esc+LeftArrow+DownArrow</th> <td colspan="3"></td><td colspan="7">Move bottom side of window down</td></tr>
<tr><th>Esc+RightArrow+UpArrow</th> <td colspan="3"></td><td colspan="7">Move top side of window up</td></tr>
<tr><th>Esc+RightArrow+DownArrow</th> <td colspan="3"></td><td colspan="7">Move top side of window down</td></tr>
<tr><th>Esc+UpArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move left side of window to left</td></tr>
<tr><th>Esc+UpArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move left side of window to right</td></tr>
<tr><th>Esc+DownArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move right side of window to right</td></tr>
<tr><th>Esc+DownArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move right side of window to left</td></tr>
<tr><th>Ctrl+LeftArrow+DownArrow<br>Ctrl+DownArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move the bottom left corner of the window outward</td></tr>
<tr><th>Ctrl+RightArrow+DownArrow<br>Ctrl+DownArrow+RightArrow</th><td colspan="3"></td><td colspan="7">Move the bottom right corner outside</td></tr>
<tr><th>Ctrl+LeftArrow+UpArrow<br>Ctrl+UpArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move the top left corner of the window outward</td></tr>
<tr><th>Ctrl+RightArrow+UpArrow<br>Ctrl+UpArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move the top right corner of the window outward</td></tr>
<tr><th>Alt+LeftArrow+DownArrow<br>Alt+DownArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move the top left corner of the window inward</td></tr>
<tr><th>Alt+RightArrow+DownArrow<br>Alt+DownArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move the top right corner of the window inward</td></tr>
<tr><th>Alt+LeftArrow+UpArrow<br>Alt+UpArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move the bottom left corner of the window inward</td></tr>
<tr><th>Alt+RightArrow+UpArrow<br>Alt+UpArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move the bottom right corner of the window inward</td></tr>
<tr><th>Esc+F11</th> <td colspan="3"></td><td colspan="7">Maximize window</td></tr>
<tr><th>Esc+F12</th> <td colspan="3"></td><td colspan="7">Maximize window to full screen</td></tr>
<tr><th>Esc+'=' | Esc+'+'</th> <td colspan="3"></td><td colspan="7">Increase window size</td></tr>
<tr><th>Esc+'-'</th> <td colspan="3"></td><td colspan="7">Reduce window size</td></tr>
<tr><th>Esc+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move window to the left</td></tr>
<tr><th>Esc+RightArrow</th> <td colspan="3"></td><td colspan="7">Move window to the right</td></tr>
<tr><th>Esc+UpArrow</th> <td colspan="3"></td><td colspan="7">Move window up</td></tr>
<tr><th>Esc+DownArrow</th> <td colspan="3"></td><td colspan="7">Move window down</td></tr>
<tr><th>Esc+LeftArrow+UpArrow | Esc+UpArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move window to the top-left</td></tr>
<tr><th>Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move window to the bottom-left</td></tr>
<tr><th>Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move window to the top-right</td></tr>
<tr><th>Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow</th><td colspan="3"></td><td colspan="7">Move window to the bottom-right</td></tr>
</tbody>
</table>

Expand Down
36 changes: 11 additions & 25 deletions src/vtm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,37 +454,23 @@ R"==(
<key="Shift+F7" action=Disconnect/> <!-- Disconnect from the desktop. -->
<key="F10" preview action=TryToQuit/> <!-- Shut down the desktop server if no applications are running. -->
<key="Alt+Shift+N" action=RunApplication/> <!-- Run default application. -->
<key="" action=AlwaysOnTopWindow/><!-- Toggle AlwaysOnTop flag on all focused windows. -->
<key="" action=CloseWindow/> <!-- Close all focused desktop windows. -->
<key="" action=MinimizeWindow/> <!-- Minimize all focused desktop windows. -->
<key="Esc+F11" action=MaximizeWindow/> <!-- Maximize all focused desktop windows. -->
<key="Esc+F12" action=FullscreenWindow/> <!-- Fullscreen the first focused desktop window. -->
<key="" action=AlwaysOnTopWindow/><!-- Toggle AlwaysOnTop window flag. -->
<key="" action=CloseWindow/> <!-- Close window. -->
<key="" action=MinimizeWindow/> <!-- Minimize window. -->
<key="Esc+F11" action=MaximizeWindow/> <!-- Maximize window. -->
<key="Esc+F12" action=FullscreenWindow/> <!-- Maximize window to full screen. -->

<key=""><action=WarpWindow data="0,0,0,0"/></key> <!-- Warp desktop window. The data parameter specifies four deltas for the left, right, top and bottom window sides. -->
<key="Esc+'=' | Esc+'+'"> <action=WarpWindow data=" 1, 1, 1, 1"/></key> <!-- Increase window size. -->
<key="Esc+'-'"> <action=WarpWindow data="-1,-1,-1,-1"/></key> <!-- Reduce window size. -->
<key="Esc+LeftArrow"> <action=WarpWindow data=" 1,-1, 0, 0"/></key> <!-- Move window to the left. -->
<key="Esc+RightArrow"> <action=WarpWindow data="-1, 1, 0, 0"/></key> <!-- Move window to the right. -->
<key="Esc+UpArrow"> <action=WarpWindow data=" 0, 0, 1,-1"/></key> <!-- Move window up. -->
<key="Esc+DownArrow"> <action=WarpWindow data=" 0, 0,-1, 1"/></key> <!-- Move window down. -->

<key="Esc+LeftArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 0,-1"/></key> <!-- Move bottom side of window up. -->
<key="Esc+LeftArrow+DownArrow"> <action=WarpWindow data=" 0, 0, 0, 1"/></key> <!-- Move bottom side of window down. -->
<key="Esc+RightArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 1, 0"/></key> <!-- Move top side of window up. -->
<key="Esc+RightArrow+DownArrow"> <action=WarpWindow data=" 0, 0,-1, 0"/></key> <!-- Move top side of window down. -->

<key="Esc+UpArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 0, 0"/></key> <!-- Move left side of window to left. -->
<key="Esc+UpArrow+RightArrow"> <action=WarpWindow data="-1, 0, 0, 0"/></key> <!-- Move left side of window to right. -->
<key="Esc+DownArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 0, 0"/></key> <!-- Move right side of window to right. -->
<key="Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0, 0"/></key> <!-- Move right side of window to left. -->

<key="Ctrl+LeftArrow+DownArrow | Ctrl+DownArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 0, 1"/></key> <!-- Move the bottom left corner of the window outward. -->
<key="Ctrl+RightArrow+DownArrow | Ctrl+DownArrow+RightArrow"><action=WarpWindow data=" 0, 1, 0, 1"/></key> <!-- Move the bottom right corner outside. -->
<key="Ctrl+LeftArrow+UpArrow | Ctrl+UpArrow+LeftArrow"> <action=WarpWindow data=" 1, 0, 1, 0"/></key> <!-- Move the top left corner of the window outward. -->
<key="Ctrl+RightArrow+UpArrow | Ctrl+UpArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 1, 0"/></key> <!-- Move the top right corner of the window outward. -->

<key="Alt+LeftArrow+DownArrow | Alt+DownArrow+LeftArrow"> <action=WarpWindow data=" 0,-1,-1, 0"/></key> <!-- Move the top left corner of the window inward. -->
<key="Alt+RightArrow+DownArrow | Alt+DownArrow+RightArrow"> <action=WarpWindow data="-1, 0,-1, 0"/></key> <!-- Move the top right corner of the window inward. -->
<key="Alt+LeftArrow+UpArrow | Alt+UpArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0,-1"/></key> <!-- Move the bottom left corner of the window inward. -->
<key="Alt+RightArrow+UpArrow | Alt+UpArrow+RightArrow"> <action=WarpWindow data="-1, 0, 0,-1"/></key> <!-- Move the bottom right corner of the window inward. -->
<key="Esc+LeftArrow+UpArrow | Esc+UpArrow+LeftArrow"> <action=WarpWindow data=" 2,-2, 1,-1"/></key> <!-- Move window to the top-left. -->
<key="Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 2,-2,-1, 1"/></key> <!-- Move window to the bottom-left. -->
<key="Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow"> <action=WarpWindow data="-2, 2, 1,-1"/></key> <!-- Move window to the top-right. -->
<key="Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow"> <action=WarpWindow data="-2, 2,-1, 1"/></key> <!-- Move window to the bottom-right. -->
</desktop>
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrev /> <!-- Focus the previous pane or the split grip. -->
Expand Down

0 comments on commit 4343907

Please sign in to comment.