I3 usage: Difference between revisions

From wikinotes
(Created page with "= Concepts = <blockquote> == Containger Management == <blockquote> Split-Vertical (<code>$mod-v</code>), or Stack-Vertical(<code>$mod-a</code>) will create a container above y...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Concepts =
= Concepts =
<blockquote>
<blockquote>
== Containger Management ==
== Container Management ==
<blockquote>
<blockquote>
Split-Vertical (<code>$mod-v</code>), or Stack-Vertical(<code>$mod-a</code>) will create a container above your window.<br>
Split-Vertical (<code>$mod-v</code>), or Stack-Vertical(<code>$mod-a</code>) will create a container above your window.<br>
Line 30: Line 30:
# you can use this to have multiple independently stacked vert-splits
# you can use this to have multiple independently stacked vert-splits
</source>
</source>
</blockquote><!-- Containger Management -->
</blockquote><!-- Container Management -->
</blockquote><!-- Concepts -->
</blockquote><!-- Concepts -->
= Controlling i3 =
<blockquote>
== i3-msg (IPC) ==
<blockquote>
After choosing a location for i3's IPC socket, you can communicate with it using the commandline utility <code>i3-msg</code>.
See the exceptionally helpful ''man page'' for more information on commands.
<source lang="bash">
i3-msg -t get_workspaces  # list workspace info, active, etc.
i3-msg -t get_outputs    # list monitors, active, etc.
ie-msg restart            # issue i3 commands over IPC
</source>
</blockquote><!-- i3-msg (IPC) -->
</blockquote><!-- Controlling i3 -->

Latest revision as of 21:52, 6 August 2021

Concepts

Container Management

Split-Vertical ($mod-v), or Stack-Vertical($mod-a) will create a container above your window.
New windows created while this container's windows are focused will be arranged as configured.

You may also select the parent container and change how it's stack will work.


Example

1. you have 2x windows you want to stack vertically

$mod+a  # select parent container
$mod+u  # stack vertically

2. you want to create a 3rd window, outside of the stack in a vert split

$mod+a            # select parent container
$mod+v            # split horizontally
$mod+shift+enter  # create 3rd window

3. continuing to use layout

# new windows from container selections will be created inside container
# new windows created from the vert split will be stacked that way
# you can use this to have multiple independently stacked vert-splits

Controlling i3

i3-msg (IPC)

After choosing a location for i3's IPC socket, you can communicate with it using the commandline utility i3-msg.

See the exceptionally helpful man page for more information on commands.

i3-msg -t get_workspaces  # list workspace info, active, etc.
i3-msg -t get_outputs     # list monitors, active, etc.
ie-msg restart            # issue i3 commands over IPC