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

Add floating window rules for non-main Steam windows #278

Merged
merged 1 commit into from
May 15, 2024

Conversation

darkeddie
Copy link
Contributor

Friends list and settings tiling can be annoying

Pull Request

Add window rules to make all non-main steam windows float on current workspace, eg. friends list, chat windows and settings.

Type of change

Please put an x in the boxes that apply:

  • 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)
  • 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:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation.
  • I want to add something in Hyprland-Dots wiki.
  • I have added tests to cover my changes.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Additional context

Note: Windows will occasionally open in a 1px by 1px window which is a known bug with hyprland/steam windows when assigned to a workspace but can be resized to the correct size

Friends list and settings tiling can be annoying
@JaKooLit
Copy link
Owner

JaKooLit commented May 15, 2024

you can assign for rules for size instead

"Note: Windows will occasionally open in a 1px by 1px window which is a known bug with https://github.com/hyprwm/Hyprland/issues/4976 but can be resized to the correct size"

example as below
windowrulev2 = size 70% 70%, class:^(xdg-desktop-portal-gtk)$

@darkeddie
Copy link
Contributor Author

With:
windowrulev2 = size [x] [y] or windowrulev2 = minsize [x] [y] - I find that it tends to freeze/crash steam or bug out the window and quite often just ignores it.
So not having it and opening small 1 out of 20 opens was better than 1/3 opens hanging or crashing.

@JaKooLit JaKooLit merged commit 5c21e65 into JaKooLit:development May 15, 2024
@darkeddie darkeddie deleted the SteamWindowRules branch May 15, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants