-
Notifications
You must be signed in to change notification settings - Fork 16
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
Multiple monitors #42
Comments
From the readme, the usage seems good. I would perhaps use I like the way mattr works, by checking the window part visible on each monitor, it's a good thing you though about it. One might need the ability to get the monitor id where the cursor is, something like It would be great to have it integrated with wmutils, either in its own repo, or in core. To do so an update will be needed in util.c. The style of your mmutils will also need to match wmutils', but we can work togetther on this. Thanks for putting hard work on this! |
Awesome!
I wrote
Sounds nice. I'll implement it soon.
Let me know how you'd like to proceed from here. I can fork the core repo and merge in mmutils while also rewriting my code to reuse as much functionality as possible from core's util.c.
I took a quick look at wmutils' code style and I see that you use tabs and open the function body with a curly brace on a new line. Anything else I should keep in mind?
Just returning the favor 😃 |
Just keep the mmutils repo for now. When it's ready, we'll check what
openning brace on its own line for functions, tabs for indentation, |
Just a small update. I've created the |
Hey @z3bra, I now have some time to get back to this. Are you still interested in this idea? I've made some initial refactoring in this branch. My plan forward is to grab wmutils' util.c and reuse as much as possible. Let me know what you think. |
Massively interested in mmutils, already rewriting my old scripts for my setup and mattr is a godsend. What needs to be done to bring them up to spec and become part of the official wmutils family? |
Updating here as I recently worked on multi-monitors with XCB:
This Randr support was recently added to libwm. See these commits:
Note that this was quickly added in the hope that the code would remain short and uncluttered. It was also only tested by me, for my specific needs, so expect bugs. It works though :) Maybe someone can find the time to export these functions as separate tools for wmutils. Note sure whether they should be in core/ or opt/. Probably opt/, as multi-monitor setups are not the norm at all. They might be common enough to deserve introduction into core/ though… |
Hello,
I know this topic has been discussed before and I know that the maintainers are not particularly interested in merging multi-monitor code, however multi-monitors are pretty common nowadays.
I myself use a laptop on a daily basis while traveling to work, at work the laptop is docked and uses two external monitors, and ad home attached to an eGPU setup for even more attached monitors. And all this is done while using wmutils.
I've created a set of utilities called mmutils (yes, zero imagination there) which provide a really similar way of interacting with monitor information to the way wmutils does with windows.
A lot of the code is borrowed from wmutils and lemonbar, but my C knowledge and experience are minimal and my additions might have impacted the overall quality.
Even though I've been using it for a month or two without any problems, I'd like other people to take a look and share some ideas on how I might improve it further.
I wouldn't imagine you ever merging this code in the repository, but if you like the code and how the utilities operate, you can add a link to the repository in the readme as a sort of recommended 3rd party helper utility so people who are interested in multi-monitor setups can benefit. That's my end goal.
Let me know what you think.
The text was updated successfully, but these errors were encountered: