41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
|
|
home.packages = with pkgs; [ grobi ];
|
|
services.grobi = {
|
|
enable = true;
|
|
executeAfter = [
|
|
"${pkgs.systemd}/bin/systemctl --user restart picom"
|
|
"${pkgs.i3}/bin/i3-msg restart"
|
|
];
|
|
rules = [
|
|
{
|
|
name = "foureighty-docked";
|
|
outputs_connected = [ "eDP1" "DP1" ];
|
|
configure_single = "DP1";
|
|
execute_after = [
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 192"
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output DP1 --primary"
|
|
];
|
|
}
|
|
{
|
|
name = "foureighty";
|
|
outputs_connected = [ "eDP1-AUO-9014-0--" ];
|
|
configure_single = "eDP1";
|
|
execute_after = [
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 144"
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --primary"
|
|
];
|
|
}
|
|
{
|
|
name = "skinnyv";
|
|
outputs_connected = [ "eDP1-AUO-8493-0--" ];
|
|
configure_single = "eDP1";
|
|
execute_after = [
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 120"
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --primary"
|
|
];
|
|
}
|
|
];
|
|
};
|
|
}
|