summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-05-04 07:42:45 +0200
committerDanny Baumann <dannybaumann@web.de>2007-05-04 07:42:45 +0200
commit3215141c60f2b3d1767099a41d43e8848c42899b (patch)
treed7d494c6b8c8421926a174e8e276b90c27a55b27
parent59423dc781c97cdd7c0c4307c3c21cd5e317fdc1 (diff)
downloadwinrules-3215141c60f2b3d1767099a41d43e8848c42899b.tar.gz
winrules-3215141c60f2b3d1767099a41d43e8848c42899b.tar.bz2
Adaptions for latest Compiz git.
-rw-r--r--winrules.c34
-rw-r--r--winrules.xml90
2 files changed, 90 insertions, 34 deletions
diff --git a/winrules.c b/winrules.c
index b8244a9..8b81c62 100644
--- a/winrules.c
+++ b/winrules.c
@@ -315,112 +315,84 @@ winrulesScreenInitOptions (WinrulesScreen *ws)
o = &ws->opt[WINRULES_SCREEN_OPTION_SKIPTASKBAR_MATCH];
o->name = "skiptaskbar_match";
- o->shortDesc = N_("Skip taskbar");
- o->longDesc = N_("Don't show application in taskbar");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_SKIPPAGER_MATCH];
o->name = "skippager_match";
- o->shortDesc = N_("Skip pager");
- o->longDesc = N_("Don't show application in pager");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_ABOVE_MATCH];
o->name = "above_match";
- o->shortDesc = N_("Above");
- o->longDesc = N_("Above others windows");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_BELOW_MATCH];
o->name = "below_match";
- o->shortDesc = N_("Below");
- o->longDesc = N_("Below others windows");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_STICKY_MATCH];
o->name = "sticky_match";
- o->shortDesc = N_("Sticky");
- o->longDesc = N_("Sticky windows");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_FULLSCREEN_MATCH];
o->name = "fullscreen_match";
- o->shortDesc = N_("Fullscreen");
- o->longDesc = N_("Fullscreen windows");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NOMOVE_MATCH];
o->name = "no_move_match";
- o->shortDesc = N_("Non movable windows");
- o->longDesc = N_("Set window as non movable");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NORESIZE_MATCH];
o->name = "no_resize_match";
- o->shortDesc = N_("Non resizable windows");
- o->longDesc = N_("Set window as non resizable");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NOMINIMIZE_MATCH];
o->name = "no_minimize_match";
- o->shortDesc = N_("Non minimizable windows");
- o->longDesc = N_("Set window as non minimizable");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NOMAXIMIZE_MATCH];
o->name = "no_maximize_match";
- o->shortDesc = N_("Non maximizable windows");
- o->longDesc = N_("Set window as non maximizable");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NOCLOSE_MATCH];
o->name = "no_close_match";
- o->shortDesc = N_("Non closable windows");
- o->longDesc = N_("Set window as non closable");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_NOFOCUS_MATCH];
o->name = "no_focus_match";
- o->shortDesc = N_("No focus");
- o->longDesc = N_("Windows will not have focus");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_WIDGET_MATCH];
o->name = "widget_match";
- o->shortDesc = N_("Widget");
- o->longDesc = N_("Set window as widget");
o->type = CompOptionTypeMatch;
matchInit (&o->value.match);
matchAddFromString (&o->value.match, "");
o = &ws->opt[WINRULES_SCREEN_OPTION_SIZE_MATCHES];
o->name = "size_matches";
- o->shortDesc = N_("sized windows");
- o->longDesc = N_("Windows that should be resized by default");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeMatch;
o->value.list.nValue = 0;
@@ -430,8 +402,6 @@ winrulesScreenInitOptions (WinrulesScreen *ws)
o = &ws->opt[WINRULES_SCREEN_OPTION_SIZE_WIDTH_VALUES];
o->name = "size_width_values";
- o->shortDesc = N_("Width");
- o->longDesc = N_("Width values");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeInt;
o->value.list.nValue = 0;
@@ -441,8 +411,6 @@ winrulesScreenInitOptions (WinrulesScreen *ws)
o = &ws->opt[WINRULES_SCREEN_OPTION_SIZE_HEIGHT_VALUES];
o->name = "size_height_values";
- o->shortDesc = N_("Height");
- o->longDesc = N_("Height values");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeInt;
o->value.list.nValue = 0;
@@ -1007,8 +975,6 @@ winrulesGetVersion (CompPlugin *plugin,
static CompPluginVTable winrulesVTable = {
"winrules",
- "Window Rules",
- "Set windows rules",
winrulesGetVersion,
0,
winrulesInit,
diff --git a/winrules.xml b/winrules.xml
new file mode 100644
index 0000000..57f8b04
--- /dev/null
+++ b/winrules.xml
@@ -0,0 +1,90 @@
+<compiz>
+ <!-- winrules metadata -->
+ <plugin name="winrules">
+ <short>Window Rules</short>
+ <long>Set windows rules</long>
+ <rule type="before">widget</rule>
+ <screen>
+ <option name="skiptaskbar_match" type="match">
+ <short>Skip taskbar</short>
+ <long>Don't show application in taskbar</long>
+ <default/>
+ </option>
+ <option name="skippager_match" type="match">
+ <short>Skip pager</short>
+ <long>Don't show application in pager</long>
+ <default/>
+ </option>
+ <option name="above_match" type="match">
+ <short>Above</short>
+ <long>Above others windows</long>
+ <default/>
+ </option>
+ <option name="below_match" type="match">
+ <short>Below</short>
+ <long>Below others windows</long>
+ <default/>
+ </option>
+ <option name="sticky_match" type="match">
+ <short>Sticky</short>
+ <long>Sticky windows</long>
+ <default/>
+ </option>
+ <option name="fullscreen_match" type="match">
+ <short>Fullscreen</short>
+ <long>Fullscreen windows</long>
+ <default/>
+ </option>
+ <option name="widget_match" type="match">
+ <short>Widget</short>
+ <long>Set window as widget</long>
+ <default/>
+ </option>
+ <option name="no_move_match" type="match">
+ <short>Non movable windows</short>
+ <long>Set window as non movable</long>
+ <default/>
+ </option>
+ <option name="no_resize_match" type="match">
+ <short>Non resizable windows</short>
+ <long>Set window as non resizable</long>
+ <default/>
+ </option>
+ <option name="no_minimize_match" type="match">
+ <short>Non minimizable windows</short>
+ <long>Set window as non minimizable</long>
+ <default/>
+ </option>
+ <option name="no_maximize_match" type="match">
+ <short>Non maximizable windows</short>
+ <long>Set window as non maximizable</long>
+ <default/>
+ </option>
+ <option name="no_close_match" type="match">
+ <short>Non closable windows</short>
+ <long>Set window as non closable</long>
+ <default/>
+ </option>
+ <option name="no_focus_match" type="match">
+ <short>No focus</short>
+ <long>Windows will not have focus</long>
+ <default/>
+ </option>
+ <option name="size_matches" type="list">
+ <short>sized windows</short>
+ <long>Windows that should be resized by default</long>
+ <type>match</type>
+ </option>
+ <option name="size_width_values" type="list">
+ <short>Width</short>
+ <long>Width values</long>
+ <type>int</type>
+ </option>
+ <option name="size_height_values" type="list">
+ <short>Height</short>
+ <long>Height values</long>
+ <type>int</type>
+ </option>
+ </screen>
+ </plugin>
+</compiz> \ No newline at end of file