So right now I am using greetd i was using sddm and hyprland before and now want to switch over to hyprland, and while I managed to setup my hyprland using wlr-randr and exec-once = [ "xrandr --output DP-2 --primary" ];
to fix some issues, I seem to run into some issues using tuigreet now.
I have 2 monitors (3440x1440 and 1080x1920 vertical) and my ultrawide monitor has a fullhd sized greetd instead of a fully scaled one and my vertical monitor is not rotated (as expected since i dont setup my monitors until I enter hyprland).
My question now is, is it possible for me to run an xrandr call before my displaymanager is started and if so, how do i best do this in a nix way.
Preferably I would only have the login screen on my ultrawide and not on the vertical one.
current greetd setup:
services = {
xserver = enabled;
greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.getExe pkgs.greetd.tuigreet} --cmd Hyprland";
user = config.wyrdgard.user.name;
};
};
};
};
full config here hyprland-config
I did see Kernel mode setting - ArchWiki that i could turn off one of my monitors using the KMS and turn it back on later, but not sure if that is good practice (or even possible at all?).
This seems to be a dead end, due to the kernel params being in a derivation and thus immutable i dont think i can change it on the fly? Found this related arch issue: ArchReddit same idea
Thanks for the help in advance!
Edit: KMS stuff