Implement options to change the default mode of containers

The following new directives have been implemented for the configuration
file:

	new_container <default|stacking|tabbed>
	new_container stack-limit <cols|rows> <value>

Note that they require using the new lexer/parser, which you can
do by passing -l to i3 when starting.
This commit is contained in:
Michael Stapelberg
2009-09-27 23:08:27 +02:00
parent fa868ed61c
commit e101940c5e
8 changed files with 92 additions and 14 deletions

View File

@ -17,6 +17,7 @@
#include <stdbool.h>
#include "queue.h"
#include "i3.h"
typedef struct Config Config;
extern Config config;
@ -71,6 +72,10 @@ struct Config {
const char *ipc_socket_path;
int container_mode;
int container_stack_limit;
int container_stack_limit_value;
/** The modifier which needs to be pressed in combination with your mouse
* buttons to do things with floating windows (move, resize) */
uint32_t floating_modifier;