rharish101 / ReGreet

Clean and customizable greeter for greetd
GNU General Public License v3.0
378 stars 17 forks source link

I have multi-monitors, and I want to set the output of ReGreet to the middle one. #80

Open aspauldingcode opened 1 month ago

aspauldingcode commented 1 month ago

I tried editing a custom sway-config under the recommended location /etc/greetd/sway-config and I was unsuccessful in setting the outputs config, so I thought I would disable left/right screens using video="DP-1:d" video="DP-3:d" under systemd boot kernel params.

However, I couldn't figure out how to re-enable those displays, which would be nice too for a temp work-around.

I use sway, greetd and ReGreet. Currently ReGreet shows on my left monitor only, which is portrait and it shows sideways. Super difficult.

aspauldingcode commented 1 month ago

PS I'm using nixos

rharish101 commented 1 month ago

Could you instead change the Sway config instead of the systemd boot kernel params? Because ReGreet is just a simple GTK app. The only multi-monitor support it has it to choose the first monitor, and adding full monitor configuration would be too complicated for a simple GTK app.

aspauldingcode commented 1 month ago

Could you instead change the Sway config instead of the systemd boot kernel params? Because ReGreet is just a simple GTK app. The only multi-monitor support it has it to choose the first monitor, and adding full monitor configuration would be too complicated for a simple GTK app.

Well, I would say I've already tried that;

https://github.com/aspauldingcode/.dotfiles/blob/main/system/NIXSTATION64/greetd/sway-config

I have commented out my attempt

rharish101 commented 1 month ago

Can you try these lines:

output DP-4 disable
output DP-6 disable

Note that there are no quotes around DP-4 and DP-6.

Further, are you sure that your monitors are called DP-4 and DP-6, and not DP-1 and DP-3 (or something else)? The manpage says that you can use swaymsg -t get_outputs to confirm the exact names (including any hyphens and so on).

aspauldingcode commented 2 weeks ago

I don't think that worked, but maybe it's fixable.

What I really want is to disable based on monitor name.

So I could do like "asus 24in something model number" and it would select that.

The problems I am facing are probably not regreet related, but I might need more help on this.

For context:

Sometimes, at reboot, the outputs rename themselves. Also, sometimes after a reboot, the monitor names are blank. I'm not sure why. I use a Tesmart hardware KVM. Maybe it's the issue? It takes in hdmi only. All my GPUs have DP out. So I use these cables that might be too long. They are dp to hdmi. I use 6 of them. 3 for GPU 1, 3 for GPU 2. I only ise one GPU fir linux, the other is meant to be passthrough ovmf for a virtual machine. I am away from my computer for about a month, but I would still like to troubleshoot this when I get my desktop.

Thanks for helping!