Add a better display configuration tool
What do you need?
There are a few options available to us to provide a better experience for users to configure their monitors.
I think something like nwg-display is a little to heavy and doesn't fit the vibe of Omarchy but some candidates I do think could be fit are:
It'd be great if people could explore these options and propose a solution for this that keeps things simple, still allows use of config files, and fits the overall Omarchy theme. It should also be able to accomplish this without needing a whole lot of rigging to support.
I don't utilize multiple displays, and I know @dhh doesn't either so it will likely require someone to pick up the torch on this one who does so we can ensure it's properly tested but also just have the motivation to tackle it.
nwg-displays is pretty easy and does the job
Yeah, i'm not entirely sure what the problem with nwg-display is :P.
Something as crucial as monitor control should be as seamless as possible. I don't use multi-monitors so i can't say which of these tools is the best, but i'd use the one that works best. Imagine quickly having to do monitor stuff and you have to fiddle around with some inferior tool, just because it's "less heavy" or fits the "vibe" more :P.
I've been running hyprmon on my desktop system that has 2-3 monitors depeding on the day. Have been very happy with it. Simple and easy to use TUI tool. Haven't tried modifying it or anything, just using it as is out of the box. It does pretty much everything I need: positioning the monitors, toggling them on/off when needed, orientation, etc. Provides hotkey tooltips visible while operating the tool so you don't have to remember everything by heart.
By default it seems to place configurations in user/.config/hypr/hyprland.conf, which don't seem to interfere with the default one in .../monitors.conf.
I can look into these other candidates to compare the options and dive deeper into hyprmon as well.
The one I think is most intriguing in the list is honestly hyprdynamicmonitors. It does a lot, and does it better in my opinion and surface-level review than nwg-displays.
The other item is has is "Event-driven architecture responding to monitor, power and lid state changes in real-time" which could solve an issue we have a few open items about like https://github.com/basecamp/omarchy/issues/797 and folks have tried to build workarounds for.
If this could solve for that and make configurations easier for users; that's a bit win.
hyprdynamicmonitors indeed looks capable and usable. I can give it a test drive usability wise next week running a few different monitor setups.
I’ve been using nwg-displays — it’s lightweight, fast, and works seamlessly.
After trying hyprmon, hyprdynamicmonitors and nwg-displays it feels like the clear winner is hyprmon. nwg-displays works well and exposes all the monitor related features you'd like to configure but does this sort of GUI app fit the "vibe" as the OP says?
hyprdynamicmonitors has a pretty nice TUI but did not feel as intuitive or simple as hyprmon. It also has a "bug" (at least for me) where the monitor layout preview starts at 0,0 rather than the center of where your monitors are actually positioned, so I couldn't even see my third monitor until I panned the entire grid over. I also don't think it allows for as much configuration as hyprmon (it may be there as I could have missed it). hyprdynamicmonitors also seems to give a lot of nice extra feature related to power and lid states but I'm on a desktop and was unable to test. Personally, I think the display config feature should be kept to just that.
In the end, hyprmon gives all the monitor functionality you'd want, has a nice TUI and a bonus extra feature of saving profiles which you can load/apply or set with a hotkey. This is useful for scenarios where you have different monitors configured at home, work, presentation, etc.
I have only used hyprmon for dual monitor setup and it works well. Now how about bringing up whatever tool chosen with right click on the background through a contextual menu?
I used hyprmon and it is doing exactly what I want. I had to find a work around about the reset to the laptop screen when I unplug from my dock. This is because I turn off my laptop screen when docked. I wrote the setup I had to do with udev to ensure the reset to the laptop screen here
some of the capability I would like to see
- auto reset to laptop when unplugged
- Screen profile switch from the hyprbar, like for WIFI which could list profile to switch to.
I have one external display (my laptop) as closing the laptop didn't really work in the beginning (not sure if it does now?) at two different places with different settings. So I used Hyprmon and it was great. And it's TUI style will fit perfectly into the Omarchy TUI vibe.
The only thing is that when you save the setup of Hyprmon, it stores it into hyprland.conf at the end, and potentially conflicts or overwrites the existing monitors.conf.
The way I use it now, is only when I'm on a new setup:
- instead of doing math I just use hyprmon and move the windows around until I'm happy
- i save it that stores it to hyrland.conf.
- i go to that hyprland.conf and copy the resolutions to my monitors.conf and add a shortcut if it's a screen/setup I'm going to use going forward.
Here's an example from right now:
hey, dev behind hyprdynamicmonitors here, stumbled across this thread and just wanted to quickly drop my thoughts.
First disclaimer: I'm not an omarchy user, I do use arch, though.
It also has a "bug" (at least for me) where the monitor layout preview starts at 0,0 rather than the center of where your monitors are actually positioned, so I couldn't even see my third monitor until I panned the entire grid over.
I've seen @frasergr 's issue here and I'm actively working on fixing that. It's a nice enhancement that I've just honestly haven't thought about till they posted about it -- fixing things like this is not much of an issue on code level, just the idea generation and how people use the tool pans into that and my creativity and my usage is limited to what I do with it (I use the TUI occasionally, prefer using the configs directly most of the time).
hyprdynamicmonitors also seems to give a lot of nice extra feature related to power and lid states but I'm on a desktop and was unable to test.
The reason behind this is that it's main target are laptop users that move frequently and want complete control over the config generation, all this (lid/power states) can be disabled from the daemon/tui standpoint. I can assure you though that these work (lol) since I'm using them daily (and all of this is e2e tested).
hyprdynamicmonitors has a pretty nice TUI but did not feel as intuitive or simple as hyprmon
Happy to work on that if there is enough drive to point me in the desired direction, I can consider revamping the TUI for some specific needs etc.
In the end, hyprmon gives all the monitor functionality you'd want, has a nice TUI and a bonus extra feature of saving profiles which you can load/apply or set with a hotkey.
I'm a lazy person, so I did not want hyprdynamicmonitors to require the end user clicking anything when monitors connect/disconnect, rather everything should be automatic. That, on the other hand, resulted in a bigger tool, and the need for a daemon. On the upside, the systemd service definition is bundled with the AUR package, so is mostly plug-n-play.
If anyone here has any feature requests / bug reports or ideas how to make it 'play better' in omarchy I'm open for feedback and making it work properly. Personally, I'd be awesome to see it integrated in the ecosystem.
Lastly, if y'all decide to go with a simpler tool (thinking about hyprmon here) that's also fine, ultimately it's your decision on what the average user of omarchy would want from their system and how they interact with it. In my mind, however, since omarchy is branded as windows/macos replacement, having the monitors auto-switch on (dis)connect seems rather essential (but again, not an omarchy user, I do know the product/brand but not much hands-on or community knowledge).
I'm using kanshi to work about the reset to the laptop screen when I unplug from my dock. It's easy to configure but has no TUI.
I've been using @fiffeek 's hyprdynamicmonitors it's great.
Painless config and does the job really well.
@ryanrhughes what is require for testing?
https://github.com/erans/hyprmon/issues/32#issuecomment-3525237999 it's simple
I'm relatively new to hyprland and Omarchy, and I finally decided to look into a tool that could handle the dynamic switching of monitors as I connect and disconnect multiple external displays to my laptop.
I started with Kanshi as suggested by a quick google search to the tune of "hyprland dynamic monitor switching" or something of the like. Got Kanshi installed, started to fiddle with config but quickly lost interest as I couldn't make much sense of the docs (mostly due to my lack of exposure to these types of tools and configs). I won't knock Kanshi as I believe it probably gets the job done for a lot of people. I then switched to hyprdynamicmonitors, and besides the pain of mistyping "hyprdynamicmonitors" as someone who can't touch type to save a life, I've had better success in setting up a working config via the TUI. I will admit, I have only about 30% of an idea on how it works, but I would consider that a plus for people who want to do a quick set up that works with multiple varying profiles without worrying if it sucks up an extra 0.1% of CPU usage.
I managed to set it up to run through systemd thanks to the docs, and I haven't had any issues yet. I'm able to dock my laptop and use both my external displays with the laptop lid closed and internal display disabled, or with the laptop open, or laptop open/closed and either external display depending on what's connected to the I/O. And when I feel like unhooking and sitting on the couch, I simply disconnect the displays and my internal display is center stage.
Long story short, for what it's worth, I vote for hyprdynamicmonitors!
(Thanks, @fiffeek)
Hey, I know y'all have not decided on the tool and I'm not pushing you towards hyprdynamicmonitors (thanks for all the encouragement, though!); but I thought it'd be great to share an issue that hyprland has at the moment that impacts the tooling around monitor configuration (thanks @maxjo020418 for reporting it in this issue).
So: hyprland can't start up (will freeze the entire system) when all the connected displays are disabled, you can read more about it here. This only impacts the boot / first start-up.
Tooling aside, you can easily end up in this state (let's imagine you have a TUI to configure the settings, or you're just changing the monitors.conf file manually), for instance:
- You're using external displays with your laptop screen disabled (e.g.
monitor=eDP-1,disable) - You power off and unplug all external displays
- You try to start your laptop the next day
- Result: Hyprland shows a blank screen and won't start because the configuration file still has the laptop screen disabled, no keybinds work, no
exec-onceare executed. In my case I can't even get another tty to open and give the keyboard control back to kernel.
And so, due to this you'll need some kind of clean up mechanism that launches prior to the graphical session start up (again, no matter the tooling).
So if you decide on a TUI / scripts / rofi (whatever really) you need to handle this edge case, otherwise the system is left unusable (you can still force boot to tty and remove the faulty lines in the monitor.conf etc., but that'd need to be manual). Personally, I don't use any greeters and launch hyprland from a tty, so this is not a big PITA, but for omarchy it's a bigger problem (since it auto launches hyprland).
hyprdynamicmonitors has it covered now via hyprdynamicmonitors prepare that launches via systemd prior to graphical-session-pre.target.
As a side note, I thought a bit about laptop vs desktop users, and hyprdynamicmonitors has now sane defaults on both (aside from other QoL improvements, most of these are community driven so I end up implementing whatever needs attention). Oh and, it does support theming now.
No matter what system is chosen, a "fall back" if no monitors are enabled should be included anyways.
From my research and testing, both hyprmon and hyprdynamicmonitors seem like they would do the job (matter of opinion of which is better). Honestly at this point one should just be chosen and included.
As a laptop user my biggest need is easy profile switching and creation for quick and smooth switching based on what workstation I am on.
As @fiffeek mentioned, I've been using hyprdynamicmonitors on my omarchy laptop in all sorts of conditions. I'm not sure if the problems I currently have is HDM's fault though, some of the problems include:
- no wallpaper and waybar but everything else work fine
- screen seizure when profile changes to mirror in some cases (planning to compile the problems and make it reproducible and such if I have time)
If it's all ironed out it seems like the most versatile one so yeah :D
@maxjo020418 if these are reproducible then just drop in an issue for hyprdynamicmonitors so these are fixed, hard to say what the root cause would be but (1) seems just on a surface level to be some misconfig (e.g. waybar not being refreshed) that's not hdm's responsibility, but (2) does sound like something that might be caused by hdm (again, hard to say, might just be weird hyprland behavior like rejecting mirroring sometimes).
What I'd do for both honestly is to see what hyprdynamicmonitors would put in the monitors.conf when the profile switch occurs, then disable hdm, and basically perform a manual update when the conditions change like this. Then you can be sure that it's not hdm causing this (or it is). But I suspect that this is more in vein of yet another issue with hyprland (and then you can just open an issue in hyprland instead lol; happy to be wrong though and fix it if it happens to be hyprdynamicmonitors bug).
Tbh I am 80% being hyprland at fault or my config causing that. profile switching itself seemed to work
I am planning on making a formal issue in like 1 or 2 weeks after I try to debug myself
cheers