sway: Make desktop-monitor assignment configurable
This commit is contained in:
parent
a55b5ed3b8
commit
9ccfe2be56
1 changed files with 21 additions and 0 deletions
|
@ -45,6 +45,25 @@ in
|
|||
};
|
||||
});
|
||||
};
|
||||
workspaceOutputs = mkOption {
|
||||
description = "Assign workspaces to outputs";
|
||||
type = types.listOf (types.submodule {
|
||||
options = {
|
||||
output = mkOption {
|
||||
description = "Name(s) of the output to assign";
|
||||
type = with types; either str (listOf str);
|
||||
apply = lists.toList;
|
||||
default = "";
|
||||
};
|
||||
workspace = mkOption {
|
||||
description = "Name of the workspace to assign";
|
||||
type = types.str;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
});
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -102,6 +121,8 @@ in
|
|||
|
||||
defaultWorkspace = "workspace number 1";
|
||||
|
||||
workspaceOutputAssign = cfg.workspaceOutputs;
|
||||
|
||||
left = "n";
|
||||
down = "e";
|
||||
up = "i";
|
||||
|
|
Loading…
Reference in a new issue