2022-12-19 09:09:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
home.packages = with pkgs; [grobi];
|
2020-04-18 17:14:53 +01:00
|
|
|
services.grobi = {
|
|
|
|
enable = true;
|
|
|
|
executeAfter = [
|
2020-05-08 16:25:14 +01:00
|
|
|
"${pkgs.systemd}/bin/systemctl --user restart picom"
|
2021-06-27 13:05:29 +01:00
|
|
|
"${pkgs.i3}/bin/i3-msg restart"
|
2020-04-18 17:14:53 +01:00
|
|
|
];
|
|
|
|
rules = [
|
|
|
|
{
|
|
|
|
name = "foureighty-docked";
|
2022-12-19 09:09:08 +00:00
|
|
|
outputs_connected = ["eDP1" "DP1"];
|
2020-04-18 17:14:53 +01:00
|
|
|
configure_single = "DP1";
|
|
|
|
execute_after = [
|
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 192"
|
2020-06-04 17:47:02 +01:00
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output DP1 --primary"
|
2020-04-18 17:14:53 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "foureighty";
|
2022-12-19 09:09:08 +00:00
|
|
|
outputs_connected = ["eDP1-AUO-9014-0--"];
|
2020-04-18 17:14:53 +01:00
|
|
|
configure_single = "eDP1";
|
|
|
|
execute_after = [
|
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 144"
|
2020-06-05 08:12:00 +01:00
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --primary"
|
2020-04-18 17:14:53 +01:00
|
|
|
];
|
|
|
|
}
|
2020-10-03 13:59:35 +01:00
|
|
|
{
|
|
|
|
name = "skinnyv";
|
2022-12-19 09:09:08 +00:00
|
|
|
outputs_connected = ["eDP1-AUO-8493-0--"];
|
2020-10-03 13:59:35 +01:00
|
|
|
configure_single = "eDP1";
|
|
|
|
execute_after = [
|
2020-11-01 14:43:39 +00:00
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 120"
|
2020-10-03 13:59:35 +01:00
|
|
|
"${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --primary"
|
|
|
|
];
|
|
|
|
}
|
2020-04-18 17:14:53 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|