Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
docs/userguide: document for_window (Thanks aksr)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Jul 31, 2011
1 parent c871856 commit b77ab98
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/userguide
Expand Up @@ -434,6 +434,31 @@ new_window <normal|1pixel|borderless>
new_window 1pixel
---------------------

=== Arbitrary commands for specific windows (for_window)

With the +for_window+ command, you can let i3 execute any command when it
encounters a specific window. This can be used to set windows to floating or to
change their border style, for example.

*Syntax*:
-----------------------------
for_window [criteria] command
-----------------------------

*Examples*:
------------------------------------------------
# enable floating mode for all XTerm windows
for_window [class="XTerm"] mode floating

# Make all urxvts use a 1-pixel border:
for_window [class="urxvt"] border 1pixel

# A less useful, but rather funny example:
# makes the window floating as soon as I change
# directory to ~/work
for_window [title="x200: ~/work"] mode floating
------------------------------------------------

=== Variables

As you learned in the section about keyboard bindings, you will have
Expand Down

0 comments on commit b77ab98

Please sign in to comment.