Skip to content

Commit

Permalink
feature: resize command
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae committed Dec 10, 2024
1 parent bbf9e77 commit d52a58e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/ipc/commands/layout_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [i3 documentation](https://i3wm.org/docs/userguide.html#manipulating_layout)
14 changes: 14 additions & 0 deletions docs/ipc/commands/resize_command.md
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d52a58e

Please sign in to comment.