add get_current_layout() to get current layout :-)
This commit is contained in:
parent
7983a3196d
commit
633d7c07ee
8
config.h
8
config.h
|
@ -59,14 +59,6 @@ struct Rule
|
||||||
|
|
||||||
typedef struct AwesomeConf AwesomeConf;
|
typedef struct AwesomeConf AwesomeConf;
|
||||||
|
|
||||||
typedef struct Layout Layout;
|
|
||||||
struct Layout
|
|
||||||
{
|
|
||||||
char *image;
|
|
||||||
LayoutArrange *arrange;
|
|
||||||
Layout *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct Key Key;
|
typedef struct Key Key;
|
||||||
struct Key
|
struct Key
|
||||||
{
|
{
|
||||||
|
|
10
layout.c
10
layout.c
|
@ -72,6 +72,16 @@ arrange(int screen)
|
||||||
restack(screen);
|
restack(screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Layout *
|
||||||
|
get_current_layout(int screen)
|
||||||
|
{
|
||||||
|
Tag **curtags = get_current_tags(screen);
|
||||||
|
Layout *l = curtags[0]->layout;
|
||||||
|
p_delete(&curtags);
|
||||||
|
return l;
|
||||||
|
}
|
||||||
|
|
||||||
/** Send focus to next client in stack
|
/** Send focus to next client in stack
|
||||||
* \param screen Screen ID
|
* \param screen Screen ID
|
||||||
* \param arg Unused
|
* \param arg Unused
|
||||||
|
|
9
layout.h
9
layout.h
|
@ -28,7 +28,16 @@
|
||||||
|
|
||||||
typedef void (LayoutArrange)(int);
|
typedef void (LayoutArrange)(int);
|
||||||
|
|
||||||
|
typedef struct Layout Layout;
|
||||||
|
struct Layout
|
||||||
|
{
|
||||||
|
char *image;
|
||||||
|
LayoutArrange *arrange;
|
||||||
|
Layout *next;
|
||||||
|
};
|
||||||
|
|
||||||
void arrange(int);
|
void arrange(int);
|
||||||
|
Layout * get_current_layout(int);
|
||||||
void restack(int);
|
void restack(int);
|
||||||
void loadawesomeprops(int);
|
void loadawesomeprops(int);
|
||||||
void saveawesomeprops(int);
|
void saveawesomeprops(int);
|
||||||
|
|
Loading…
Reference in New Issue