Revised the default rule set
This commit is contained in:
parent
107456f71a
commit
18b165edc8
4 changed files with 56 additions and 26 deletions
|
@ -20,6 +20,7 @@ not implement the functionality: `Monitor_toggleWindowTag`, `View_activateWindow
|
||||||
6. `~` Revised the bar color scheme.
|
6. `~` Revised the bar color scheme.
|
||||||
7. `~` Revised the rule layout. The third parameter is not compared to the window style anymore, but is a function name, which is
|
7. `~` Revised the rule layout. The third parameter is not compared to the window style anymore, but is a function name, which is
|
||||||
called with the window ID as a paramater, when applying the rule.
|
called with the window ID as a paramater, when applying the rule.
|
||||||
|
8. `~` Revised the default rule set.
|
||||||
|
|
||||||
| # | Configuration variables | `-` Hotkey functions | `+` Hotkey functions |
|
| # | Configuration variables | `-` Hotkey functions | `+` Hotkey functions |
|
||||||
| --:| ------------------------- | --------------------------------------- | ----------------------------------------------------- |
|
| --:| ------------------------- | --------------------------------------- | ----------------------------------------------------- |
|
||||||
|
@ -65,6 +66,15 @@ called with the window ID as a paramater, when applying the rule.
|
||||||
| | `+` `Config_fontColor_#2` | | |
|
| | `+` `Config_fontColor_#2` | | |
|
||||||
| | `+` `Config_fontColor_#3` | | |
|
| | `+` `Config_fontColor_#3` | | |
|
||||||
| 7. | `~` `Config_rule_#2` | | |
|
| 7. | `~` `Config_rule_#2` | | |
|
||||||
|
| 8. | `~` `Config_rule_#3` | | |
|
||||||
|
| | `~` `Config_rule_#4` | | |
|
||||||
|
| | `~` `Config_rule_#7` | | |
|
||||||
|
| | `~` `Config_rule_#9` | | |
|
||||||
|
| | `~` `Config_rule_#10` | | |
|
||||||
|
| | `~` `Config_rule_#11` | | |
|
||||||
|
| | `~` `Config_rule_#12` | | |
|
||||||
|
| | `+` `Config_rule_#13` | | |
|
||||||
|
| | `+` `Config_rule_#14` | | |
|
||||||
|
|
||||||
### 8.4.0
|
### 8.4.0
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ The following `Config.ini` line replaces rule number 11 in the default
|
||||||
configuration, putting windows of 'Mozilla Firefox' on view 5, keeping the
|
configuration, putting windows of 'Mozilla Firefox' on view 5, keeping the
|
||||||
title bar visible and maximizing them.
|
title bar visible and maximizing them.
|
||||||
|
|
||||||
`Config_rule_#11=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize`
|
`Config_rule_#13=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize`
|
||||||
|
|
||||||
#### Mozilla Thunderbird
|
#### Mozilla Thunderbird
|
||||||
|
|
||||||
|
|
|
@ -276,27 +276,44 @@ the window first is created.
|
||||||
> Pop-up windows (style WS_POPUP) will not be managed, are floating and the
|
> Pop-up windows (style WS_POPUP) will not be managed, are floating and the
|
||||||
titles are hidden.
|
titles are hidden.
|
||||||
|
|
||||||
`Config_rule_#3=SWT_Window0;.*;;1;0;0;0;0;0;`
|
`Config_rule_#3=QWidget;.*;;1;0;0;0;0;0;`
|
||||||
> Windows created by Java (SWT) e. g. Eclipse have the style WS_POPUP, but
|
> Windows created by QT (QWidget) have the style WS_POPUP, but should be
|
||||||
should be excluded from the second rule.
|
excluded from the preceding rule.
|
||||||
|
|
||||||
`Config_rule_#4=QWidget;.*;;1;0;0;0;0;0;`
|
`Config_rule_#4=SWT_Window0;.*;;1;0;0;0;0;0;`
|
||||||
> Also windows created by QT (QWidget) should be excluded from the second rule
|
> Also windows created by Java (SWT) e. g. Eclipse should be excluded from the
|
||||||
for the same reason as above.
|
second rule for the same reason as above.
|
||||||
|
|
||||||
`Config_rule_#5=Xming;.*;;1;0;0;0;0;0;`
|
`Config_rule_#5=Xming;.*;;1;0;0;0;0;0;`
|
||||||
> Also Xming windows should be excluded from the second rule for the same
|
> Also Xming windows should be excluded from the second rule for the same
|
||||||
reason as above.
|
reason as above.
|
||||||
|
|
||||||
Config_rule_#6=MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;
|
Config_rule_#6=MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;
|
||||||
Config_rule_#7=AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;1;
|
Config_rule_#7=AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;
|
||||||
Config_rule_#8=CalcFrame;.*;;1;0;0;1;1;0;
|
|
||||||
Config_rule_#9=MozillaDialogClass;.*;;1;0;0;1;1;0;
|
|
||||||
Config_rule_#10=_sp;_sp;;1;0;0;1;0;1;
|
|
||||||
Config_rule_#11=MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;maximize
|
|
||||||
Config_rule_#12=Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;maximize
|
|
||||||
|
|
||||||
`Config_ruleCount=12`
|
`Config_rule_#8=CalcFrame;.*;;1;0;0;1;1;0;`
|
||||||
|
> Windows calculator.
|
||||||
|
|
||||||
|
`Config_rule_#9=CabinetWClass;.*;;1;0;0;0;1;0;`
|
||||||
|
> Windows Explorer. If the window's title bar is hidden, it looks distorted.
|
||||||
|
|
||||||
|
Config_rule_#10=Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;
|
||||||
|
> Chrome web browser. If the window's title bar is hidden, it looks distorted.
|
||||||
|
|
||||||
|
Config_rule_#11=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;
|
||||||
|
> With the preceding rule overriding #2 Chrome pop-up windows would be treated
|
||||||
|
as new main windows.
|
||||||
|
|
||||||
|
Config_rule_#12=IEFrame;.*Internet Explorer;;1;0;0;0;1;0;
|
||||||
|
> Internet Explorer. If the window's title bar is hidden, it looks distorted.
|
||||||
|
|
||||||
|
Config_rule_#13=MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;
|
||||||
|
> Firefox web browser. If the window's title bar is hidden, it looks distorted.
|
||||||
|
|
||||||
|
Config_rule_#14=MozillaDialogClass;.*;;1;0;0;1;1;0;
|
||||||
|
> These windows are also pop-up windows.
|
||||||
|
|
||||||
|
`Config_ruleCount=14`
|
||||||
> This variable will be automatically set to the total number of active rules
|
> This variable will be automatically set to the total number of active rules
|
||||||
above.
|
above.
|
||||||
|
|
||||||
|
|
|
@ -79,20 +79,21 @@ Config_init() {
|
||||||
Config_viewMargins := "0;0;0;0"
|
Config_viewMargins := "0;0;0;0"
|
||||||
|
|
||||||
;; Config_rule_#<i> := '<class>;<title>;<function name>;<is managed>;<m>;<tags>;<is floating>;<is decorated>;<hide title>;<action>'
|
;; Config_rule_#<i> := '<class>;<title>;<function name>;<is managed>;<m>;<tags>;<is floating>;<is decorated>;<hide title>;<action>'
|
||||||
Config_rule_#1 := ".*;.*;;1;0;0;0;0;0;" ;; default rule
|
Config_rule_#1 := ".*;.*;;1;0;0;0;0;0;"
|
||||||
Config_rule_#2 := ".*;.*;Window_isPopup;0;0;0;1;1;1;" ;; Pop-up windows (style WS_POPUP) will not be managed, are floating and the titles are hidden.
|
Config_rule_#2 := ".*;.*;Window_isPopup;0;0;0;1;1;1;"
|
||||||
Config_rule_#3 := "SWT_Window0;.*;;1;0;0;0;0;0;" ;; Windows created by Java (SWT) e. g. Eclipse have the style WS_POPUP, but should be excluded from the second rule.
|
Config_rule_#3 := "QWidget;.*;;1;0;0;0;0;0;"
|
||||||
Config_rule_#4 := "QWidget;.*;;1;0;0;0;0;0;" ;; ... also windows created by QT (QWidget)
|
Config_rule_#4 := "SWT_Window0;.*;;1;0;0;0;0;0;"
|
||||||
Config_rule_#5 := "Xming;.*;;1;0;0;0;0;0;" ;; ... and Xming windows
|
Config_rule_#5 := "Xming;.*;;1;0;0;0;0;0;"
|
||||||
Config_rule_#6 := "MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;"
|
Config_rule_#6 := "MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;"
|
||||||
Config_rule_#7 := "AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;1;"
|
Config_rule_#7 := "AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;"
|
||||||
Config_rule_#8 := "CalcFrame;.*;;1;0;0;1;1;0;"
|
Config_rule_#8 := "CalcFrame;.*;;1;0;0;1;1;0;"
|
||||||
Config_rule_#9 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
|
Config_rule_#9 := "CabinetWClass;.*;;1;0;0;0;1;0;"
|
||||||
Config_rule_#10 := "_sp;_sp;;1;0;0;1;0;1;"
|
Config_rule_#10 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;"
|
||||||
Config_rule_#11 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;maximize"
|
Config_rule_#11 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;"
|
||||||
Config_rule_#12 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;maximize"
|
Config_rule_#12 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;"
|
||||||
;; @TODO [v9] Config_rule_#13 := "Chrome_WidgetWin_1;.*;0x80000000;0;0;0;1;1;0;" -- else pop-up windows are treated as new main windows, since #12 overrides #2
|
Config_rule_#13 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;"
|
||||||
Config_ruleCount := 12 ;; This variable has to be set to the total number of active rules above.
|
Config_rule_#14 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
|
||||||
|
Config_ruleCount := 14 ;; This variable has to be set to the total number of active rules above.
|
||||||
|
|
||||||
;; Configuration management
|
;; Configuration management
|
||||||
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"
|
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"
|
||||||
|
@ -382,6 +383,8 @@ Config_saveSession(original, target)
|
||||||
}
|
}
|
||||||
|
|
||||||
Config_UI_saveSession() {
|
Config_UI_saveSession() {
|
||||||
|
Global Config_filePath
|
||||||
|
|
||||||
Config_saveSession(Config_filePath, Config_filePath)
|
Config_saveSession(Config_filePath, Config_filePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue