Skip to content

Commit d52a58e

Browse files
committed
feature: resize command
1 parent bbf9e77 commit d52a58e

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

docs/ipc/commands/layout_command.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ of the currently selected container.
55

66
## Example
77
```sh
8-
miraclemsg command "layout splitv" # Set the layout to 'vertical'
9-
miraclemsg command "layout splith" # Set the layout to 'horizontal'
10-
miraclemsg command "layout toggle split" # Set the layout to 'vertical' if 'horizontal' and vice versa
11-
miraclemsg command "layout toggle tabbed splith splitv" # Cycle through the layouts in the list
8+
miraclemsg "layout splitv" # Set the layout to 'vertical'
9+
miraclemsg "layout splith" # Set the layout to 'horizontal'
10+
miraclemsg "layout toggle split" # Set the layout to 'vertical' if 'horizontal' and vice versa
11+
miraclemsg "layout toggle tabbed splith splitv" # Cycle through the layouts in the list
1212
```
1313

1414
## Links
15-
- [i3 documentation](https://i3wm.org/docs/userguide.html#manipulating_layout)
15+
- [i3 documentation](https://i3wm.org/docs/userguide.html#manipulating_layout)

docs/ipc/commands/resize_command.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Resize
2+
3+
Introduced in v0.4.0, the `resize` command allows users to to change the resize
4+
the currently selected container
5+
6+
## Example
7+
```sh
8+
miraclemsg "resize grow width 10" # Grow width by 10px
9+
miraclemsg "resize shrink height 10 ppt" # Shrinks the height by 10% of the screen
10+
miraclemsg "resize set 100px 50 ppt" # Sets the dimensions of the container to 100px width and 50% of the screen
11+
```
12+
13+
## Links
14+
- [i3 documentation](https://i3wm.org/docs/userguide.html#resizingconfig)

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ nav:
3838
- ipc/programming.md
3939
- Commands:
4040
- ipc/commands/layout_command.md
41+
- ipc/commands/resize_command.md
4142
- Screen Sharing: screenshare.md
4243
- Mir's Built-in Configuration: configuration/mir.md
4344
- Display Configuration: configuration/display_configuration.md

0 commit comments

Comments
 (0)