awesome/tag.h

31 lines
1.4 KiB
C
Raw Normal View History

2007-09-05 20:15:00 +02:00
/* See LICENSE file for copyright and license details. */
#ifndef AWESOME_TAG_H
#define AWESOME_TAG_H
2007-09-05 20:15:00 +02:00
#include <regex.h>
#include "client.h"
/** Check if a client is tiled */
#define IS_TILED(client, tags, ntags) (client && !client->isfloating && isvisible(client, tags, ntags))
2007-09-10 12:06:54 +02:00
void compileregs(awesome_config *); /* initialize regexps of rules defined in config.h */
Bool isvisible(Client *, Bool *, int);
2007-09-10 12:06:54 +02:00
void applyrules(Client * c, awesome_config *); /* applies rules to c */
void uicb_tag(Display *, awesome_config *, const char *); /* tags sel with arg's index */
void uicb_togglefloating(Display *, awesome_config *, const char *); /* toggles sel between floating/tiled state */
void uicb_toggletag(Display *, awesome_config *, const char *); /* toggles sel tags with arg's index */
void uicb_toggleview(Display *, awesome_config *, const char *); /* toggles the tag with arg's index (in)visible */
void uicb_view(Display *, awesome_config *, const char *); /* views the tag with arg's index */
void uicb_viewprevtags(Display *, awesome_config *, const char *);
void uicb_tag_viewnext(Display *, awesome_config *, const char *); /* view only tag just after the first selected */
void uicb_tag_viewprev(Display *, awesome_config *, const char *); /* view only tag just before the first selected */
2007-09-05 20:15:00 +02:00
typedef struct
{
regex_t *propregex;
regex_t *tagregex;
} Regs;
#endif