KWin Rules Examples/da: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 52: | Line 52: | ||
Vi antager, at '''Kopete''' er åben: | Vi antager, at '''Kopete''' er åben: | ||
# | # Brug <menuchoice>Detektér vinduesegenskaber</menuchoice> og vælg '''Kopetes''' vindue. Vi skal kun matche på det primære klassenavn, så vælg ingen af tilvalgsboksene — for mere information se [[Special:myLanguage/KWin_Rules_Window_Matching|vindue-matchning]]:<br /><br />[[Image:kopete-info.png|350px|center]] | ||
# Clicking '''OK''' in the previous window back-fills the results in the '''Window Matching''' tab. Enter a meaningful '''Description''':<br><br>[[Image:window-matching-kopete.png|350px|center]] | # Clicking '''OK''' in the previous window back-fills the results in the '''Window Matching''' tab. Enter a meaningful '''Description''':<br><br>[[Image:window-matching-kopete.png|350px|center]] | ||
# Enable the following attributes:<br /><br />[[Image:kopete-attribute-1.png|350px|center]]<br>[[Image:kopete-attribute-2.png|350px|center]] | # Enable the following attributes:<br /><br />[[Image:kopete-attribute-1.png|350px|center]]<br>[[Image:kopete-attribute-2.png|350px|center]] |
Revision as of 19:14, 16 March 2012
Eksempler
Fastgør et vindue til et skrivebord eller indstil andre egenskaber
Fastgør Akregator til Virtuelt skrivebord 2. Start desuden programmet op med en foretrukken størrelse og position. For hver egenskab bruges parameteren Anvend i begyndelsen, sådan at den kan ændres, når programmet køres.
KWin reglen laves således:
" Start Akregator på skrivebord 2, tilpas vinduets størrelse og position som du vil have det:
- Højreklik på menulinjen og vælg
- Klik på gruppen
- Nu vises vinduet Redigér vinduesspecifikke indstillinger. Fanebladet
- Klik på vindue-matchning:
- Når du klikker på
- Aktivér vinduesegenskaberne:
- Når du klikker på
- Klik for at lukke vinduet.
- Så er du færdig.
Program på alle skriveborde og håndtér et undervindue specielt
Vi vil vise Kopete og alle dets undervinduer undtagen samtalevinduer på alle skriveborde men ikke i statusområdet eller skrivebordsvælgeren. Undervinduer til samtaler skal behandles som hovedvinduet, men også vises i statusområdet.
For hver egenskab bruges parameteren , sådan at den ikke kan ændres.
For at opnå følgende skal der laves to regler:
- En regel til Kopete Chat og
- En regel til Kopete
Reglen for Kopete Chat er mere restriktiv end reglen for Kopete, da den skal matche en specifik vinduesrolle: chatvinduet. På grund af den måde reglerne gennemgås skal reglen for Kopete Chat komme før reglen for Kopete i listen med KWin regler for Kopete.
Reglen for Kopete Chat
Vi antager at Kopete har et chatvindue åbent:
- Brug vindue-matchning:
- Klik på
- Aktivér følgende egenskaber:
- Klik for at færdiggøre reglen.
Reglen til Kopete
Vi antager, at Kopete er åben:
- Brug vindue-matchning:
- Clicking OK in the previous window back-fills the results in the Window Matching tab. Enter a meaningful Description:
- 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 Detect Window Properties and select any sticky note window. Match only by primary class name so leave the check boxes unchecked - for additional information see window matching:
- Clicking OK in the previous window back-fills the results in the Window Matching tab. Enter a meaningful Description:
- Enable the Skip Pager attribute with the Force 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 Focus stealing prevention attribute to None, typically, in conjunction with the Force 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 Detect Window Properties and select the Thunderbird Main window. Check the Window role box to restrict the criteria to the main window - for additional information see window matching:
- Clicking OK in the previous window back-fills the results in the Window Matching tab. Enter a meaningful Description:
- Enable the following attributes:
- Click through to complete entry of the rule.
Thunderbird - Composer
Assuming a Thunderbird Composer window is open:
- Use Detect Window Properties and select the Thunderbird Compose window. Check the Window role and Window type boxes to restrict the criteria to composition windows - for additional information see window matching:
- Clicking OK in the previous window back-fills the results in the Window Matching tab. Enter a meaningful Description:
- Enable the following attributes:
- Click through to complete entry of the rule.
Thunderbird - Reminder
Assuming a Thunderbird Reminder window is open:
- Use Detect Window Properties and select the Thunderbird Reminder window. Check the Secondary class name and Window Type boxes to restrict the criteria to reminder windows - for additional information see window matching:
- Clicking OK in the previous window back-fills the results in the Window Matching tab. Enter a meaningful Description:
- Enable the following attributes:
- Click through to complete entry of the rule.