services.grobi.rules

Home-Manager option

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 = [ "${pkgs.xorg.xrandr}/bin/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 = [ "${pkgs.xorg.xrandr}/bin/xrandr --dpi 120" "${pkgs.xmonad-with-packages}/bin/xmonad --restart"; ]; } ]
declared in: <home-manager/modules/services/grobi.nix>source unavailable