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.
This commit is contained in:
Andreas Zweili 2022-04-15 15:20:41 +02:00
parent 279e1770ec
commit 68378e96d2
4 changed files with 27 additions and 11 deletions

View File

@ -3,13 +3,13 @@
imports = [
(import ./common { inherit custom inputs; })
./software/work-desktop
./software/autorandr
./software/calibre
./software/czkawka
./software/dunst
./software/emacs
./software/evince
./software/git
./software/grobi
./software/keeweb
./software/mime-apps
./software/mpv

View File

@ -1,2 +0,0 @@
#!/usr/bin/env bash
autorandr -c &

View File

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
autorandr
];
home.file.".config/qtile/autostart.d/autorandr.sh".source = ./autorandr.sh;
}

View File

@ -0,0 +1,26 @@
{ 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";
}
];
};
}