KWin Rules Window Matching/uk: Difference between revisions

From KDE UserBase Wiki
(Created page with "* <menuchoice>Заголовок вікна</menuchoice> — обмежити відповідність вікнами з певним заголовком.")
(Created page with "* <menuchoice>Вузол (назва вузла)</menuchoice> — обмежити відповідність назвою вузла (комп’ютера), пов’яза...")
Line 22: Line 22:
* <menuchoice>Заголовок вікна</menuchoice> — обмежити відповідність вікнами з певним заголовком.
* <menuchoice>Заголовок вікна</menuchoice> — обмежити відповідність вікнами з певним заголовком.


* <menuchoice>Machine (hostname)</menuchoice> - restrict the match to the host name associated with the window.
* <menuchoice>Вузол (назва вузла)</menuchoice> — обмежити відповідність назвою вузла (комп’ютера), пов’язаною з вікном.


{{Tip|While it's possible to manually enter the above information, the preferred method is to use the <menuchoice>Detect Window Properties</menuchoice> button.}}
{{Tip|While it's possible to manually enter the above information, the preferred method is to use the <menuchoice>Detect Window Properties</menuchoice> button.}}

Revision as of 12:51, 17 July 2013

Other languages:



Відповідність вікон

За допомогою вкладки Відповідність вікон можна вказати критерії, за якими KWin визначатиме, чи слід застосовувати певне правило до певного вікна.

Можна не вказувати жодного критерію (відповідність будь-якому вікну) або вказати декілька з наведених нижче варіантів:

  • Клас вікна (програма) — відповідність за класом.
    • Відповідає цілому класу вікон — встановлювати відповідність і для вторинних елементів класу.
  • Роль вікна — обмежити відповідність призначенням вікна (наприклад, головне вікно, вікно балачки тощо)
  • Типи вікон — обмежити відповідність певним типом вікна: Звичайне вікно, Діалогове вікно тощо.
  • Заголовок вікна — обмежити відповідність вікнами з певним заголовком.
  • Вузол (назва вузла) — обмежити відповідність назвою вузла (комп’ютера), пов’язаною з вікном.

Tip

While it's possible to manually enter the above information, the preferred method is to use the Detect Window Properties button.


For each field, the following operators can be applied against the field value:

  • Unimportant - ignore the field.
  • Exact Match
  • Substring Match

Note

Both Exact Match and Substring Match implement case insensitive matching. For example, AB matches the string AB, ab, Ab and aB.


Detect Window Properties

The Detect Window Properties function simplifies the process of entering the matching-criteria.

  1. For the application you'd like to create a rule, start the application.
  2. Next, in the Window matching tab, set the number of seconds of delay before the Detect Window Properties function starts. The default is zero seconds.
  3. Click on Detect Window Properties and
  4. When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click.
  5. A new window is presented with information about the selected window. Select the desired fields:
    • Secondary class name - some applications have a secondary class name. This value can be used to restrict windows by this value.
    • Window role
    • Window type
    • Window title

Click the OK button to back-fill the Window Matching criteria.

By using a combination of the information, a rule can apply to an entire application (by Class) or a to a specific window Type within the Class - say a Toolbar.