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
- <home-manager/modules/services/grobi.nix>