2017-11-23 12:39:27 +11:00
|
|
|
#ifndef _SWAY_WORKSPACE_H
|
|
|
|
#define _SWAY_WORKSPACE_H
|
|
|
|
|
2018-03-30 03:15:31 +11:00
|
|
|
#include "sway/tree/container.h"
|
2018-01-31 15:09:21 +11:00
|
|
|
|
|
|
|
extern char *prev_workspace_name;
|
|
|
|
|
2017-11-23 12:39:27 +11:00
|
|
|
char *workspace_next_name(const char *output_name);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_create(const char *name);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
bool workspace_switch(struct sway_container *workspace);
|
2018-01-31 15:09:21 +11:00
|
|
|
|
|
|
|
struct sway_container *workspace_by_number(const char* name);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_by_name(const char*);
|
2018-01-31 15:09:21 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_output_next(struct sway_container *current);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_next(struct sway_container *current);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_output_prev(struct sway_container *current);
|
2018-03-30 03:15:31 +11:00
|
|
|
|
2018-03-30 05:31:10 +11:00
|
|
|
struct sway_container *workspace_prev(struct sway_container *current);
|
2017-11-23 12:39:27 +11:00
|
|
|
|
|
|
|
#endif
|