2007-09-12 14:29:51 +02:00
|
|
|
/*
|
|
|
|
* tag.h - tag management header
|
|
|
|
*
|
|
|
|
* Copyright © 2007 Julien Danjou <julien@danjou.info>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*/
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2007-09-10 16:11:57 +02:00
|
|
|
#ifndef AWESOME_TAG_H
|
|
|
|
#define AWESOME_TAG_H
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
#include <regex.h>
|
|
|
|
#include "client.h"
|
|
|
|
|
2007-09-06 20:02:30 +02:00
|
|
|
/** Check if a client is tiled */
|
2007-09-16 12:57:33 +02:00
|
|
|
#define IS_TILED(client, screen, tags, ntags) (client && !client->isfloating && isvisible(client, screen, tags, ntags))
|
2007-09-06 20:02:30 +02:00
|
|
|
|
2007-09-10 17:05:42 +02:00
|
|
|
void compileregs(Rule *, int); /* initialize regexps of rules defined in config.h */
|
2007-09-16 12:57:33 +02:00
|
|
|
Bool isvisible(Client *, int, Bool *, int);
|
2007-09-10 12:06:54 +02:00
|
|
|
void applyrules(Client * c, awesome_config *); /* applies rules to c */
|
2007-09-17 13:58:49 +02:00
|
|
|
void uicb_tag(Display *, DC *, awesome_config *, const char *); /* tags sel with arg's index */
|
|
|
|
void uicb_togglefloating(Display *, DC *, awesome_config *, const char *); /* toggles sel between floating/tiled state */
|
|
|
|
void uicb_toggletag(Display *, DC *, awesome_config *, const char *); /* toggles sel tags with arg's index */
|
|
|
|
void uicb_toggleview(Display *, DC *, awesome_config *, const char *); /* toggles the tag with arg's index (in)visible */
|
|
|
|
void uicb_view(Display *, DC *, awesome_config *, const char *); /* views the tag with arg's index */
|
|
|
|
void uicb_viewprevtags(Display *, DC *, awesome_config *, const char *);
|
|
|
|
void uicb_tag_viewnext(Display *, DC *, awesome_config *, const char *); /* view only tag just after the first selected */
|
|
|
|
void uicb_tag_viewprev(Display *, DC *, 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
|