Skip to content

Commit b54ee34

Browse files
authored
fix: simplify window rules for xdg-desktop-portal-gtk (#1317)
# Pull Request ## Description Small simplification of window rules for `xdg-desktop-portal-gtk`. These is no need to explicitly add `float` rule because window will be floating from `common-popups` tag rules ## Type of change - [ ] **Bug fix** (non-breaking change which fixes an issue) - [ ] **New feature** (non-breaking change which adds functionality) - [ ] **Breaking change** (fix or feature that would cause existing functionality to not work as expected) - [ ] **Documentation update** (non-breaking change; modified files are limited to the documentations) - [x] **Technical debt** (a code change that does not fix a bug or add a feature but makes something clearer for devs) - [ ] **Other** (provide details below) ## Checklist Please put an `x` in the boxes that apply: - [x] I have read the [CONTRIBUTING](https://github.com/HyDE-Project/HyDE/blob/master/CONTRIBUTING.md) document. - [x] My code follows the code style of this project. - [x] My commit message follows the [commit guidelines](https://github.com/HyDE-Project/HyDE/blob/master/COMMIT_MESSAGE_GUIDELINES.md). - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added a changelog entry. - [ ] I have added necessary comments/documentation to my code. - [ ] I have added tests to cover my changes. - [x] I have tested my code locally and it works as expected. - [ ] All new and existing tests passed.
2 parents 900b573 + c009b13 commit b54ee34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Configs/.local/share/hypr/windowrules.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ windowrule = size <60% <90%,tag:common-popups
1616
windowrule = float,tag:portal-dialogs
1717
windowrule = center,tag:portal-dialogs
1818

19-
2019
# Only add the Core applications here
2120
windowrule = float,class:^(com.gabm.satty)$
2221
windowrule = float,class:^(org.kde.dolphin)$,title:^(Progress Dialog — Dolphin)$
@@ -39,15 +38,14 @@ windowrule = float,class:^(blueman-manager)$
3938
windowrule = float,class:^(nm-applet)$
4039
windowrule = float,class:^(nm-connection-editor)$
4140
windowrule = float,class:^(org.kde.polkit-kde-authentication-agent-1)$
42-
windowrule = float,class:^([Xx]dg-desktop-portal-gtk)$
4341

4442
# common popups
4543
windowrule = tag +common-popups,initialTitle:^(Open File)$
4644
windowrule = tag +common-popups,title:^(Choose Files)$
4745
windowrule = tag +common-popups,title:^(Save As)$
4846
windowrule = tag +common-popups,title:^(Confirm to replace files)$
4947
windowrule = tag +common-popups,title:^(File Operation Progress)$
50-
windowrule = tag +common-popups,class:^(xdg-desktop-portal-gtk)$
48+
windowrule = tag +common-popups,class:^([Xx]dg-desktop-portal-gtk)$
5149

5250
# portal-dialogs
5351
windowrule = tag +portal-dialogs,class:^(org.freedesktop.impl.portal.desktop.hyprland)$

0 commit comments

Comments
 (0)