KWin Rules Examples/uk: Difference between revisions
(Created page with "{{Note_(uk)|У першому прикладі докладно описано всі необхідні кроки для створення правил. З метою ун...") |
(Created page with "{{Note_(uk)|Атрибут '''Пейджер''' стосується '''Керування віртуальними стільницями''':<br /><br />[[Image:pager-4-deskt...") |
||
Line 5: | Line 5: | ||
{{Note_(uk)|У першому прикладі докладно описано всі необхідні кроки для створення правил. З метою уникнення непотрібного роздуття об’єму цієї довідки у наступних прикладах буде наведено лише список кроків, специфічних для відповідного прикладу.}} | {{Note_(uk)|У першому прикладі докладно описано всі необхідні кроки для створення правил. З метою уникнення непотрібного роздуття об’єму цієї довідки у наступних прикладах буде наведено лише список кроків, специфічних для відповідного прикладу.}} | ||
{{ | {{Note_(uk)|Атрибут '''Пейджер''' стосується '''Керування віртуальними стільницями''':<br /><br />[[Image:pager-4-desktops.png|center]]}} | ||
<span id="Pin_a_Window_to_a_Desktop_and_set_other_Attributes"></span> | <span id="Pin_a_Window_to_a_Desktop_and_set_other_Attributes"></span> | ||
===Pin a Window to a Desktop and set other Attributes=== | ===Pin a Window to a Desktop and set other Attributes=== |
Revision as of 09:05, 29 August 2012
Приклади
Pin a Window to a Desktop and set other Attributes
Pin Akregator to Virtual Desktop 2. Additionally, start the application with a preferred size and position. For each attribute, use the Apply Initially parameter so it can be overridden at run-time.
The KWin rule is created as follows:
- Start Akregator on desktop two, size and position it to suit:
- Right-click on the menu bar and select
- Select the
- The Edit Window-Specific Settings window is displayed.
- Click window matching:
- Clicking
- Enable the window attributes:
- Clicking
- Click to close the window.
- Done.
Application on all Desktops and Handle One Child Window Uniquely
Except for conversation windows, display Kopete and its children windows on all desktops and skip the systray and pager. For children conversation windows, treat them as the parent window except show them in systray.
For each attribute, use the parameter so it can not be overridden.
In order to implement the above, two rules need to be created:
- A rule for Kopete Chat and
- A rule for Kopete
The Kopete Chat rule's matching-criteria is more restrictive than the Kopete rule as it needs to match a specific Window Role: the chat window. Due to rule evaluation processing, the Kopete Chat rule must precede the Kopete rule in the KWin Rule list for Kopete.
Kopete Chat Rule
Assuming a Kopete Chat window is open:
- Use window matching:
- Clicking
- Enable the following attributes:
- Click through to complete entry of the rule.
Kopete Rule
Assuming Kopete is open:
- Use window matching:
- Clicking
- Enable the following attributes:
- Click through to complete entry of the rule.
Kopete KWin Rule List
As mentioned, due to rule evaluation processing, the Kopete Chat rule must precede the Kopete rule:
Suppress a Window from showing on Pager
KNotes currently does not allow for its notes to skip the pager however a rule easily solves this shortcoming.
Assuming a sticky note' window is available:
- Use window matching:
- Clicking
- Enable the parameter:
- Click through to complete entry of the rule.
Force a Window to the Top
To pop an active window to the top, set its parameter:
Multiple Rules per Application
Thunderbird has several different child windows. This example:
- Pin Thunderbird's main window on Virtual Desktop 1 with a specific size and location on the desktop.
- Allow the Thunderbird composer window to reside on any desktop and when activated, force focus and pop it to the top of all windows.
- Pop the Thunderbird reminder to the top and do not give it focus so it isn't inadvertently dismissed.
Each rule's matching criteria is sufficiently restrictive so their order within the main KWin window is not important to affect rule evaluation.
Thunderbird - Main
Assuming the Thunderbird Main window is open, sized and position to suit:
- Use window matching:
- Clicking
- Enable the following attributes:
- Click through to complete entry of the rule.
Thunderbird - Composer
Assuming a Thunderbird Composer window is open:
- Use window matching:
- Clicking
- Enable the following attributes:
- Click through to complete entry of the rule.
Thunderbird - Reminder
Assuming a Thunderbird Reminder window is open:
- Use window matching:
- Clicking
- Enable the following attributes:
- Click through to complete entry of the rule.