-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature Request: layouts per display #4
Comments
Actually, I have a more helpful suggestion: a new property Just think about it, instead of memorizing a specific keybinding to move a window to another monitor and another one for tiling it, we could just use the tiling keybindings. This way, multi-monitor setups would work more seamlessly on linux. For zones without the |
Came here looking for this, hopefully this gets implemented soon, otherwise the script looks good! |
I've got a single line fix for this if you are happy to just have a single layout per display and not swap between layouts. Firstly, have however many layouts you have as monitors, with the first for the monitor identified as 0, second for 1, etc... |
I can assure that it functions properly on the following system.
P.S.: Is it possible to add a donations link? : ) |
I'm a bit new at this... Which file would you add that line too? thanks in advance |
contents/ui/main.qml I should really try and find a bit of time at some point to put together a PR for this. @gerritdevriese - Any preference on an implementation for this, mine isn't ideal as you lose a bit of functionality with regards to changeable layouts. I have thought of a few ideas, multiplying monitor id by configuration number for example. Or a configuration for each display. Are either, or an alternative more in keeping with your design philosophy? |
Thank you, I have found it. I have added the line to the refreshClientArea function as below, and I have labelled by layouts as "0", "1" and "2".
Then I have disabled/applied/enabled/applied the script in KWin scripts. However, the only change is the Layout is labelled "0" on all monitors. I'm not sure if I'm missing something which supports this option or whether I have entered something incorrectly at this stage. |
Reboot your pc! That also confused me. |
Install via KDE Store or clone this repo and run the ./build script. Running the build script was all I needed from memory |
Rebooting worked! Thank you. I have an issue with the way I have set up my third monitor, I'll enable debug mode later on and see if I can fix. I'm sure it's just a confusion with the monitor positioning or positive/neg y positioning. |
If you can write how you will debug it and solve that would be nice! |
I located problem between the keyboard and chair.
|
Hi there! Sorry for the delayed response, I just received the notification. It seems that you were able to resolve the issue on your own. Although, when windows are snapped on the primary display they dont resize at all. It may be related to X11 idk.. I will try to create a bug report in the coming days. |
Layout is now tracked per screen/desktop/activity, instead of one single activity across everything. This should address feature request gerritdevriese#4 Adding support for screen was a bit tricky to tease out because of the difference between the "active screen" (where the mouse is pointing to) and the "active client" (where the window is on), but otherwise pretty straightforward. The only thing to note is that the default layout for all screen is now the first layout, which might be a bit inconvenient if the user is used to have a main layout that is not the first one in the list. Maybe this could be an config option.
Hi all I think I got layout per display/virtual desktop/activity to work with the pull req above ;). It's a hack, nothing fancy, and pretty rudimentary but works for my needs. I think it should be working correctly but maybe more testing is needed. If you want you can try the feature before it merged with my fork of the script (https://github.com/trivoldus28/kzones/tree/layout_per_screen2). |
I just tried this out and it seems to work fine. Any chance that this could lead to a release? |
@trivoldus28 Can you create a PR for this? |
+1, just adding my voice here. I'm maining KZones and it's the best replacement for FancyZones for me on Linux! :) |
This should probably be a new issue, but until the Trivoldus28's feature/hack is merged, I thought this may be a better place for it. I've noticed that KZones (using trivoldus28's feature/hack) doesn't remember which layout I chose per monitor. To illustrate with an example, I have one monitor horizontal and one vertical (on its side). To accommodate this, I have two layouts. Each time I restart, both monitors default to the first layout specified in my |
Sorry people, just got time now to get to this, made a PR for review @gerritdevriese : #60 @ldsands Do you mean you want the selected layout to be remembered across reboots? |
Yup, that would be ideal. |
It would be nice to see layout per display (monitor) feature. Great script btw!
The text was updated successfully, but these errors were encountered: