-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] layout_center: centered window to big #55
Comments
I can't reproduce that behavior here. You may need to provide full pypr logs and the output of:
When you change the focused window (with Mod + arrow) is the problem reproduced on the next window ? Are you using scaling on monitors ? |
Wow this is a fast response time! :-)
Yes, the behavior is transferred to the next windows, if I switch with the arrow keys. All my monitors have a scaled resolution. |
So I confirm this is because of the scale, it's not handled at the moment, it will probably be fixed quickly (today?). |
this is great! I will check it out. Thanks |
Thank you again for fixing this. |
You are welcome! but I'm not fully understanding this feedback, isn't the actual window centered ? |
Pyprland version
Which version did you use?
2.0.5
Describe the bug
A clear and concise description of what the bug is.
I am using the layout_center plugin configured as mentioned in the wiki.
When activation the layout_center the Windows which should be centered is resized above the right an bottom screen boundaries.
To Reproduce
Steps to reproduce the behavior:
Activate the layout_center plugin.
Expected behavior
A centered window with a margin from the screen on each side of the window.
Configuration (provide following files/samples when relevant):
[pyprland]
plugins = [
"scratchpads",
"toggle_special",
"layout_center",
"monitors",
"shift_monitors",
"workspaces_follow_focus",
"expose"
]
[workspaces_follow_focus]
max_workspaces = 9 # number of workspaces before cycling
[scratchpads.volume]
lazy = true
command = "pavucontrol"
class = "volume"
unfocus = "hide"
animation = "fromBottom"
[scratchpads.term]
lazy=true
command = "kitty --class kitty-dropterm"
class = "term"
animation = "fromTop"
unfocus = "keep"
[scratchpads.logseq]
command = "logseq"
class = "Logseq"
animation = "fromTop"
unfocus = "keep"
lazy = true
[scratchpads.stb]
animation = "fromBottom"
class = "kitty-stb"
lazy = true
command = "kitty --class kitty-stb sstb"
[scratchpads.stb-logs]
animation = "fromTop"
class = "kitty-stb-logs"
lazy = true
command = "kitty --class kitty-stb-logs stbLog"
[layout_center]
margin = 100
offset = [0, 0]
next = "movefocus r"
prev = "movefocus l"
next2 = "movefocus d"
prev2 = "movefocus u"`
bind = $mainMod, M, exec, pypr layout_center toggle # toggle the layout
focus change keys
bind = $mainMod, left, exec, pypr layout_center prev
bind = $mainMod, right, exec, pypr layout_center next
bind = $mainMod, up, exec, pypr layout_center prev2
bind = $mainMod, down, exec, pypr layout_center next2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: