-
Notifications
You must be signed in to change notification settings - Fork 46
Description
For example, I'd like to have a hotkey that causes a window to take up half the screen. I'd also to detect when new monitors are connected, and then resize any windows that this hotkey was used on such that they take up half of the new screen size. I can use BERRY_WINDOW_STATUS to get the original size of a window, but it would be kinda of hard to work out from that what the new size should be.
I'm hoping that there's a way to attach arbitrary information to BERRY_WINDOW_STATUS, e.g. berryc label '{"position": "half right"}' or something like that. The idea would be to look up the "position" for each window, recalculate the coordinates for that position based on the new screen size, then apply those coordinates to the window. Is there any way to do something like this, either via berry or directly via X? If not, is this a feature you'd be open to adding?