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 new position command; allow size and position to be set with set-floating command #817

Merged
merged 8 commits into from
Nov 7, 2024

Conversation

DreamMaoMao
Copy link
Contributor

@DreamMaoMao DreamMaoMao commented Oct 30, 2024

This pr allows you to set size,position and centered status of the window when setting it to float, so that the launch size,position and center can be specified in the window open rule

@DreamMaoMao
Copy link
Contributor Author

DreamMaoMao commented Oct 30, 2024

close: #693

maybe close:#806

@DreamMaoMao
Copy link
Contributor Author

  - commands: ["set-floating --centered --width=1500 --height=900"]
    match:
      - window_process: { regex: 'cloudmusic' }
2024-10-30.19-37-22.mp4

@DreamMaoMao DreamMaoMao changed the title feat: allow set windows size in set-floating command feat: allow set windows size and centered status in set-floating command Oct 30, 2024
@DreamMaoMao DreamMaoMao changed the title feat: allow set windows size and centered status in set-floating command feat: allow set size, postition and centered status in set-floating command Oct 31, 2024
packages/wm/src/app_command.rs Outdated Show resolved Hide resolved
packages/wm/src/app_command.rs Outdated Show resolved Hide resolved
@DreamMaoMao DreamMaoMao force-pushed the feat-setfloating-size branch from 86504d1 to bf1f9ec Compare November 7, 2024 07:28
packages/wm/src/app_command.rs Outdated Show resolved Hide resolved
packages/wm/src/app_command.rs Show resolved Hide resolved
packages/wm/src/app_command.rs Outdated Show resolved Hide resolved
packages/wm/src/windows/commands/set_window_position.rs Outdated Show resolved Hide resolved
@DreamMaoMao DreamMaoMao force-pushed the feat-setfloating-size branch from c919f32 to 865af17 Compare November 7, 2024 08:48
optimize code struct

optimize code struct

optimize code

optimize code

optimize code

optimize code

optimize code
@lars-berger lars-berger changed the title feat: allow set size, postition and centered status in set-floating command feat: add new position command; allow size and position to be set with set-floating command Nov 7, 2024
@lars-berger lars-berger merged commit 04e6c2f into glzr-io:main Nov 7, 2024
2 checks passed
@DreamMaoMao DreamMaoMao deleted the feat-setfloating-size branch November 10, 2024 00:09
Copy link

🎉 This PR is included in version 3.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 3.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants