diff --git a/docs/ipc/commands/layout_command.md b/docs/ipc/commands/layout_command.md index 2d0a640..1e969dc 100644 --- a/docs/ipc/commands/layout_command.md +++ b/docs/ipc/commands/layout_command.md @@ -5,11 +5,11 @@ of the currently selected container. ## Example ```sh -miraclemsg command "layout splitv" # Set the layout to 'vertical' -miraclemsg command "layout splith" # Set the layout to 'horizontal' -miraclemsg command "layout toggle split" # Set the layout to 'vertical' if 'horizontal' and vice versa -miraclemsg command "layout toggle tabbed splith splitv" # Cycle through the layouts in the list +miraclemsg "layout splitv" # Set the layout to 'vertical' +miraclemsg "layout splith" # Set the layout to 'horizontal' +miraclemsg "layout toggle split" # Set the layout to 'vertical' if 'horizontal' and vice versa +miraclemsg "layout toggle tabbed splith splitv" # Cycle through the layouts in the list ``` ## Links -- [i3 documentation](https://i3wm.org/docs/userguide.html#manipulating_layout) \ No newline at end of file +- [i3 documentation](https://i3wm.org/docs/userguide.html#manipulating_layout) diff --git a/docs/ipc/commands/resize_command.md b/docs/ipc/commands/resize_command.md new file mode 100644 index 0000000..448cc69 --- /dev/null +++ b/docs/ipc/commands/resize_command.md @@ -0,0 +1,14 @@ +# Resize + +Introduced in v0.4.0, the `resize` command allows users to to change the resize +the currently selected container + +## Example +```sh +miraclemsg "resize grow width 10" # Grow width by 10px +miraclemsg "resize shrink height 10 ppt" # Shrinks the height by 10% of the screen +miraclemsg "resize set 100px 50 ppt" # Sets the dimensions of the container to 100px width and 50% of the screen +``` + +## Links +- [i3 documentation](https://i3wm.org/docs/userguide.html#resizingconfig) diff --git a/mkdocs.yml b/mkdocs.yml index 24568a0..88367cf 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -38,6 +38,7 @@ nav: - ipc/programming.md - Commands: - ipc/commands/layout_command.md + - ipc/commands/resize_command.md - Screen Sharing: screenshare.md - Mir's Built-in Configuration: configuration/mir.md - Display Configuration: configuration/display_configuration.md