Skip to content
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

Side_by_side output support? #79

Open
APokorny opened this issue Apr 11, 2024 · 14 comments
Open

Side_by_side output support? #79

APokorny opened this issue Apr 11, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@APokorny
Copy link

I have a multi-monitor setup, how can you set up a side_by_side layout?
I think this is supported somehow by miral - but I dont get how to setup miracle-wm to enable that.

@mattkae
Copy link
Collaborator

mattkae commented Apr 11, 2024

Hi @APokorny !
This is supported. You can do the following:

miracle-wm --display-config sidebyside

Let me know if that works for you :)

@mattkae
Copy link
Collaborator

mattkae commented Apr 11, 2024

Also, see miracle-wm --help for all of the options. There are many of them. I'll try and expose them in a nice way in miracle one of these days

@APokorny
Copy link
Author

APokorny commented Apr 11, 2024

When using the snap it should be enough to add:

display-config: sidebyside

to a $HOME/.config/miracle-wm.config ?
because miracle-wm will be argv[0] and MirRunner adds .config?

That does not seem to work for me..

@mattkae
Copy link
Collaborator

mattkae commented Apr 11, 2024

I would also expect that to work. It should read:

display-config=sidebyside

Maybe the colon is your issue there?

@APokorny
Copy link
Author

Hmm makes no difference - is there a way to get log output..

@mattkae
Copy link
Collaborator

mattkae commented Apr 11, 2024

Does it work when you run with the command line param? Wondering if its a config parsing issue or something else

@APokorny
Copy link
Author

no that parameter didnt help
foo.log

@APokorny
Copy link
Author

oh is that an nvidia issue... the logs dont look good..

@mattkae
Copy link
Collaborator

mattkae commented Apr 11, 2024

Is nothing showing when doing sidebyside? Or is the one monitor on and usable?

@APokorny
Copy link
Author

APokorny commented Apr 11, 2024

both monitors are on, but on the second monitor a stretched version of the first monitor frame buffer is composited.

@mattkae
Copy link
Collaborator

mattkae commented Apr 16, 2024

Okay that's good news at least. That means we're at least trying to composite there. It is a mirror of the first monitor though, correct?

@APokorny
Copy link
Author

yes

@mattkae mattkae added the bug Something isn't working label Apr 17, 2024
@mattkae
Copy link
Collaborator

mattkae commented Apr 17, 2024

That sounds like the option simply isn't working in your case, but I'd have to dig deeper there

@mecattaf
Copy link

Hey Matt, wondering if we can have a similar implementation to wayland's kanshi for miracle-wm?
I like to have my output settings separate from my swaywm config, and kanshi allows for dynamic display configuration.

For example please find my current kanshi config below:

profile Thinkpad {
    output eDP-1 scale 1.5 position 0,0
    exec busctl --user set-property rs.wl-gammarelay /outputs/eDP_1 rs.wl.gammarelay Temperature q 3500
}

profile Duo {
    output eDP-1 scale 2 position 0,0   adaptive_sync on
    output eDP-2 scale 2 position 0,900 adaptive_sync on
    exec busctl --user set-property rs.wl-gammarelay /outputs/eDP_1 rs.wl.gammarelay Temperature q 3850
    exec busctl --user set-property rs.wl-gammarelay /outputs/eDP_2 rs.wl.gammarelay Temperature q 3350
    exec swaymsg input "1267:16986:ELAN9009:00_04F3:425B" map_to_output eDP-1
    exec swaymsg input "1267:16987:ELAN9008:00_04F3:425A" map_to_output eDP-2
    exec swaymsg input "1267:16986:ELAN9009:00_04F3:425B_Stylus" map_to_output eDP-1
    exec swaymsg input "1267:16987:ELAN9008:00_04F3:425A_Stylus" map_to_output eDP-2
}

profile Desktop {
    output eDP-1 scale 2 position 0,0   adaptive_sync on
    output eDP-2 scale 2 position 0,900 adaptive_sync on
    output HDMI-A-1 mode 2560x1440@119.998Hz scale 1 position 1440,0
    exec busctl --user set-property rs.wl-gammarelay /outputs/eDP_1 rs.wl.gammarelay Temperature q 3850
    exec busctl --user set-property rs.wl-gammarelay /outputs/eDP_2 rs.wl.gammarelay Temperature q 3350
    exec busctl --user set-property rs.wl-gammarelay /outputs/HDMI_A_1 rs.wl.gammarelay Temperature q 4000
    exec swaymsg input "1267:16986:ELAN9009:00_04F3:425B" map_to_output eDP-1
    exec swaymsg input "1267:16987:ELAN9008:00_04F3:425A" map_to_output eDP-2
    exec swaymsg input "1267:16986:ELAN9009:00_04F3:425B_Stylus" map_to_output eDP-1
    exec swaymsg input "1267:16987:ELAN9008:00_04F3:425A_Stylus" map_to_output eDP-2
}

You will also note here that I use wl-gammarelay-rs to control screen temperature as it is the only way I found to set different temperature on different displays.
In hyprland we have to resort to shaders which is very annoying as it remains when we take screenshots (leaving me with a very orange screenshot most of the time).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants