nixos/home-manager/software/grobi/default.nix
Andreas Zweili 68378e96d2 switch from autorandr to grobi
I always had problems with getting autorandr to work correctly. Grobi seems
    to be much more reliable. Funny enough it is written by the same guy as
    restic.
2022-04-15 15:20:41 +02:00

27 lines
534 B
Nix

{ pkgs, ... }:
{
services.grobi = {
enable = true;
rules = [
{
name = "docked";
outputs_connected = [ "DP-1-1" "DP-1-2" ];
atomic = true;
configure_row = [ "DP-1-2" "DP-1-1" ];
primary = "DP-1-1";
}
{
name = "undocked";
outputs_disconnected = [ "DP-1-1" "DP-1-2" ];
configure_single = "eDP-1";
primary = true;
atomic = true;
}
{
name = "fallback";
configure_single = "eDP-1";
}
];
};
}