<simplesect id="config-autoprops-types" xreflabel="AutoTypes">
  <title>TypeRules, autoproperties controlling _NET_WM_WINDOW_TYPE</title>

  <para>
    The TypeRules decides how the _NET_WM_WINDOW_TYPE should be
    interpreted. The _NET_WM_WINDOW_TYPE hint gives the application
    writer possibility to inform the window manager what kind of window
    it is creating.
  </para>

  <para>
    TypeRules are defined in the TypeRules section of the
    <filename>~/.pekwm/autoproperties</filename> file. A sample
    section could look something like this:
  </para>

  <screen>TypeRules {
    ...

    Property = "MENU"  {
        Titlebar = "False"
        Border = "False"
        Skip = "FocusToggle Menus Snap"
    }

    ...
}</screen>

  <para>
    Using TypeRules are done the same way as with
    <xref linkend="config-autoprops-adv" /> but the property is
    matched based on the value of _NET_WM_WINDOW_TYPE. Supported
    values are available in the list below.
  </para>

  <para>
    <variablelist>
      <title>Supported values</title>

      <varlistentry>
        <term>Desktop</term>
        <listitem>
          <para>
            A desktop window such as the window containing desktop
            icons on the Gnome desktop.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Dock</term>
        <listitem>
          <para></para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Toolbar</term>
        <listitem>
          <para></para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Menu</term>
        <listitem>
          <para></para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Utility</term>
        <listitem>
          <para></para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Splash</term>
        <listitem>
          <para>
            Application startup screen usually presenting loading
            progress.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Dialog</term>
        <listitem>
          <para>
            Dialogs prompting for information such as "Save as" dialogs.
          </para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>Normal</term>
        <listitem>
          <para>
            Any other window, can be used to set default autoproperties.
          </para>
        </listitem>
      </varlistentry>
    </variablelist>
  </para>

</simplesect>
