Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add window rule to sample config for ignoring picture-in-picture #480

Merged
merged 4 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions GlazeWM.App/Resources/sample-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ window_rules:
- command: "set floating"
match_class_name: "#32770"

# Do not manage Picture-in-picture windows. Default is for english, change the match_title to the appropriate window's name if you use another language.
- command: "ignore"
match_title: "[Pp]icture.in.[Pp]icture"
match_class_name: "Chrome_WidgetWin_1|MozillaDialogClass"
lars-berger marked this conversation as resolved.
Show resolved Hide resolved

# Some applications (eg. Steam) have borders that extend past the normal border size.
- command: "resize borders 0px -7px -7px -7px"
match_process_name: "steam"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,14 @@ window_rules:
- command: "ignore"
match_process_name: "notepad"
```
#### Picture in Picture mode :
Change the `match_title` to the appropriate window's name
```
# Do not manage Picture-in-picture windows
- command: "ignore"
match_title: "[Pp]icture.in.[Pp]icture"
match_class_name: "Chrome_WidgetWin_1|MozillaDialogClass"
```

# Available commands

Expand Down