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

Multi-monitor Support on Cage #11

Open
CaitlinDavitt opened this issue Mar 3, 2023 · 11 comments
Open

Multi-monitor Support on Cage #11

CaitlinDavitt opened this issue Mar 3, 2023 · 11 comments
Labels
bug Something isn't working multi monitor Related to multi-monitor setups

Comments

@CaitlinDavitt
Copy link

Hello, I was trying to use ReGreet with two monitors, and it ended up spanning one login screen across the middle of both monitors, which was difficult to use. Would there be a way for it to either have ReGreet on just one monitor, have one screen with the login and one with just the background, or have ReGreet on both of the monitors? Thanks.

@rharish101 rharish101 added the bug Something isn't working label Mar 4, 2023
@rharish101
Copy link
Owner

rharish101 commented Mar 12, 2023

Could you post your compositor (the one used to launch ReGreet) config? I tried this with Sway, and it opens ReGreet on a single monitor, while the other monitor stays greyed out.

@rharish101 rharish101 added question Further information is requested and removed question Further information is requested labels Mar 12, 2023
@rharish101
Copy link
Owner

I can also set the other monitors to display the background image using swaybg in the Sway config. For this, I added this line to my Sway config:

exec swaybg --image "/path/to/background/image.jpg"

Though, this method has the downside that you need to install another application swaybg to set the background image.

@TheSunCat
Copy link

I can reproduce this with an external monitor plugged in. Here's my Sway config:

exec "regreet; swaymsg exit"

bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \
-b 'Poweroff' 'systemctl poweroff' \
-b 'Reboot' 'systemctl reboot'

include /etc/sway/config.d/*

@rharish101
Copy link
Owner

rharish101 commented Mar 29, 2023

@TheSunCat Could you also post the contents of all files under /etc/sway/config.d? I had nearly the same Sway config (without the bindsym) when I last tested this.

EDIT: Please also include your Sway version, GTK version, and your OS version.

@rharish101 rharish101 added the multi monitor Related to multi-monitor setups label Apr 20, 2023
@rharish101
Copy link
Owner

If anyone still has this issue, please try the latest main branch code. I added a commit for some basic multi monitor support, which should theoretically help with this issue.

@zombiehoffa
Copy link

I can confirm that the git aur package as of today had this issue with cage for me but when I switched to sway as above it worked fine.

@rharish101
Copy link
Owner

Okay, in that case I'll close this issue. If anyone still has issues, feel free to comment here. I'll then reopen this issue.

@Vosjedev
Copy link

I am trying to get this to work with cage, because I do not use sway by default. Tried with hyprland, did not work...

@ValouBambou
Copy link

ValouBambou commented Dec 10, 2023

The issue is still here (arch linux official package) using cage, also I tried to use sway instead but the window with login, session doesn't appear.

EDIT: I understood the doc about sway and manage to solve the issue using sway, but the issue still exists with the default config using cage.

@ericlay
Copy link

ericlay commented Dec 21, 2023

Came here because I'm suffering the same issue. I am using the arch official package and cage on hyprland.

@rharish101 rharish101 reopened this Dec 31, 2023
@rharish101 rharish101 changed the title Multi-monitor Support Multi-monitor Support on Cage Dec 31, 2023
@max-ishere
Copy link
Contributor

You can make it on one monitor with this option:

-m <mode>

Set the multi-monitor behavior. Supported modes are: last Cage uses only the last connected monitor. extend Cage extends the display across all connected monitors.

https://man.archlinux.org/man/extra/cage/cage.1.en#OPTIONS

Basically do cage -mlast -- regreet, you probably also want -d -s, lookup what those mean in cage.

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

No branches or pull requests

8 participants