add grobi

This commit is contained in:
Cyryl Płotnicki 2020-04-18 17:14:53 +01:00
parent ba64a0e3b6
commit 6dca1f723a
2 changed files with 32 additions and 1 deletions

31
nixos/i3/grobi.nix Normal file
View file

@ -0,0 +1,31 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [ grobi ];
services.grobi = {
enable = true;
executeAfter = [
"systemctl --user restart picom"
"i3-msg restart"
"systemctl --user restart kdeconnect-indicator.service kdeconnect.service network-manager-applet.service pasystray.service"
];
rules = [
{
name = "foureighty-docked";
outputs_connected = [ "eDP1" "DP1" ];
configure_single = "DP1";
execute_after = [
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 192"
];
}
{
name = "foureighty";
outputs_connected = [ "eDP1" ];
configure_single = "eDP1";
execute_after = [
"${pkgs.xorg.xrandr}/bin/xrandr --dpi 144"
];
}
];
};
}

View file

@ -1,9 +1,9 @@
{ config, pkgs, ... }:
{
imports = [
./grobi.nix
./i3.nix
./dunst.nix
./autorandr.nix
./rofi.nix
];