KWin Rules Window Matching: Difference between revisions
Line 36: | Line 36: | ||
# When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click. | # When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click. | ||
# A new window is presented with information about the selected window. Select the desired fields: | # A new window is presented with information about the selected window. Select the desired fields: | ||
#* '''Secondary class name''' | #* '''Secondary class name''' - some applications have a secondary class name. This value can be used to restrict windows by this value. | ||
#* '''Window role''' | #* '''Window role''' | ||
#* '''Window type''' | #* '''Window type''' |
Revision as of 18:44, 2 March 2012
Window Matching
The
tab is used to specify the criteria KWin uses to evaluate whether the rule is applicable for a given window.Zero (match any window) or more of the following may be specified:
- and - ... and all its children windows.
- match this window.
- - restrict the match to the function of the window (e.g. a main window, a chat window, etc.)
- - restrict the match to the type of window: Normal Window, Dialog Window, etc.
- - restrict the match to the title of the window.
- - restrict the match to the host name associated with the window.
For each field, the following operators can be applied against the field value:
- - ignore the field.
- - case insensitive.
- - case insensitive.
- - Qt's regular expressions are implemented. For additional information, web search qt regex nokia.
Detect Window Properties
The
function simplifies the process of entering the matching-criteria.- For the application you'd like to create a rule, start the application.
- Next, in the tab, set the number of seconds of delay before the function starts. The default is zero seconds.
- Click on and
- When the mouse-cursor turns to cross-hairs, place it inside the application window (not the title bar) and left-click.
- 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
button to back-fill the 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.