services.grobi.enable
Whether to enable the grobi display setup daemon.
Type: boolean
Default:
false
Example:
true
Declared by:
services.grobi.package
The grobi package to use.
Type: package
Default:
pkgs.grobi
Declared by:
services.grobi.executeAfter
Commands to be run after an output configuration was
changed. The Nix value declared here will be translated to
JSON and written to the execute_after key
in $XDG_CONFIG_HOME/grobi.conf.
Type: list of string
Default:
[ ]
Example:
[
"setxkbmap dvorak"
]
Declared by:
services.grobi.rules
These are the rules grobi tries to match to the current
output configuration. The rules are evaluated top to bottom,
the first matching rule is applied and processing stops. See
https://github.com/fd0/grobi/blob/master/doc/grobi.conf
for more information. The Nix value declared here will be
translated to JSON and written to the rules
key in $XDG_CONFIG_HOME/grobi.conf.
Type: list of attribute set of (string or boolean or signed integer or list of string)
Default:
[ ]
Example:
[
{
name = "Home";
outputs_connected = [ "DP-2" ];
configure_single = "DP-2";
primary = true;
atomic = true;
execute_after = [
"${lib.getExe pkgs.xrandr} --dpi 96"
"${pkgs.xmonad-with-packages}/bin/xmonad --restart";
];
}
{
name = "Mobile";
outputs_disconnected = [ "DP-2" ];
configure_single = "eDP-1";
primary = true;
atomic = true;
execute_after = [
"${lib.getExe pkgs.xrandr} --dpi 120"
"${pkgs.xmonad-with-packages}/bin/xmonad --restart";
];
}
]
Declared by: