summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <SmSpillaz@gmail.com>2010-05-14 01:16:20 +0800
committerSam Spilsbury <SmSpillaz@gmail.com>2010-05-14 01:22:54 +0800
commit85459083b01e7f85e2b2102a5ac0763fcc851b8e (patch)
treeeb30ecb56dc0632f782268fc06e572f4dc68fe0b
parentdc4e7ec5411767d1034681dc5e06f09812c028e0 (diff)
downloadzcomp-85459083b01e7f85e2b2102a5ac0763fcc851b8e.tar.gz
zcomp-85459083b01e7f85e2b2102a5ac0763fcc851b8e.tar.bz2
Added more commands to commands plugin.
Some people use compiz as a standalone WM and require some ridiculous number of command shortcuts. We like to put options in to facilitate those people because we are nice :).
-rw-r--r--plugins/commands/commands.xml.in153
-rw-r--r--plugins/commands/src/commands.cpp27
2 files changed, 180 insertions, 0 deletions
diff --git a/plugins/commands/commands.xml.in b/plugins/commands/commands.xml.in
index ede3706..360c9e7 100644
--- a/plugins/commands/commands.xml.in
+++ b/plugins/commands/commands.xml.in
@@ -72,6 +72,51 @@
<_long>Command line to be executed in shell when run_command11 is invoked</_long>
<default></default>
</option>
+ <option name="command12" type="string">
+ <_short>Command line 12</_short>
+ <_long>Command line to be executed in shell when run_command12 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command13" type="string">
+ <_short>Command line 13</_short>
+ <_long>Command line to be executed in shell when run_command13 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command14" type="string">
+ <_short>Command line 14</_short>
+ <_long>Command line to be executed in shell when run_command14 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command15" type="string">
+ <_short>Command line 15</_short>
+ <_long>Command line to be executed in shell when run_command15 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command16" type="string">
+ <_short>Command line 16</_short>
+ <_long>Command line to be executed in shell when run_command16 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command17" type="string">
+ <_short>Command line 17</_short>
+ <_long>Command line to be executed in shell when run_command17 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command18" type="string">
+ <_short>Command line 18</_short>
+ <_long>Command line to be executed in shell when run_command18 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command19" type="string">
+ <_short>Command line 19</_short>
+ <_long>Command line to be executed in shell when run_command19 is invoked</_long>
+ <default></default>
+ </option>
+ <option name="command20" type="string">
+ <_short>Command line 20</_short>
+ <_long>Command line to be executed in shell when run_command20 is invoked</_long>
+ <default></default>
+ </option>
</group>
<group>
<_short>Key Bindings</_short>
@@ -123,6 +168,42 @@
<_short>Run command 11</_short>
<_long>A keybinding that when invoked, will run the shell command identified by command11</_long>
</option>
+ <option name="run_command12_key" type="key">
+ <_short>Run command 12</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command12</_long>
+ </option>
+ <option name="run_command13_key" type="key">
+ <_short>Run command 13</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command13</_long>
+ </option>
+ <option name="run_command14_key" type="key">
+ <_short>Run command 14</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command14</_long>
+ </option>
+ <option name="run_command15_key" type="key">
+ <_short>Run command 15</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command15</_long>
+ </option>
+ <option name="run_command16_key" type="key">
+ <_short>Run command 16</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command16</_long>
+ </option>
+ <option name="run_command17_key" type="key">
+ <_short>Run command 17</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command17</_long>
+ </option>
+ <option name="run_command18_key" type="key">
+ <_short>Run command 18</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command18</_long>
+ </option>
+ <option name="run_command19_key" type="key">
+ <_short>Run command 19</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command19</_long>
+ </option>
+ <option name="run_command20_key" type="key">
+ <_short>Run command 20</_short>
+ <_long>A keybinding that when invoked, will run the shell command identified by command20</_long>
+ </option>
</group>
<group>
<_short>Button Bindings</_short>
@@ -173,6 +254,42 @@
<option name="run_command11_button" type="button">
<_short>Run command 11</_short>
<_long>A button binding that when invoked, will run the shell command identified by command11</_long>
+ </option>
+ <option name="run_command12_button" type="button">
+ <_short>Run command 12</_short>
+ <_long>A button binding that when invoked, will run the shell command identified by command12</_long>
+ </option>
+ <option name="run_command13_button" type="button">
+ <_short>Run command 13</_short>
+ <_long>A button binding that when invoked, will run the shell command identified by command13</_long>
+ </option>
+ <option name="run_command14_button" type="button">
+ <_short>Run command 14</_short>
+ <_long>A button binding that when invoked, will run the shell command identified by command14</_long>
+ </option>
+ <option name="run_command15_button" type="button">
+ <_short>Run command 15</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command15</_long>
+ </option>
+ <option name="run_command16_button" type="button">
+ <_short>Run command 16</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command16</_long>
+ </option>
+ <option name="run_command17_button" type="button">
+ <_short>Run command 17</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command17</_long>
+ </option>
+ <option name="run_command18_button" type="button">
+ <_short>Run command 18</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command18</_long>
+ </option>
+ <option name="run_command19_button" type="button">
+ <_short>Run command 19</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command19</_long>
+ </option>
+ <option name="run_command20_button" type="button">
+ <_short>Run command 20</_short>
+ <_long>A button bunding that when invoked, will run the shell command identified by command20</_long>
</option>
</group>
<group>
@@ -225,6 +342,42 @@
<_short>Run command 11</_short>
<_long>An edge binding that when invoked, will run the shell command identified by command11</_long>
</option>
+ <option name="run_command12_edge" type="edge">
+ <_short>Run command 12</_short>
+ <_long>A edge binding that when invoked, will run the shell command identified by command12</_long>
+ </option>
+ <option name="run_command13_edge" type="edge">
+ <_short>Run command 13</_short>
+ <_long>A edge binding that when invoked, will run the shell command identified by command13</_long>
+ </option>
+ <option name="run_command14_edge" type="edge">
+ <_short>Run command 14</_short>
+ <_long>A edge binding that when invoked, will run the shell command identified by command14</_long>
+ </option>
+ <option name="run_command15_edge" type="edge">
+ <_short>Run command 15</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command15</_long>
+ </option>
+ <option name="run_command16_edge" type="edge">
+ <_short>Run command 16</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command16</_long>
+ </option>
+ <option name="run_command17_edge" type="edge">
+ <_short>Run command 17</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command17</_long>
+ </option>
+ <option name="run_command18_edge" type="edge">
+ <_short>Run command 18</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command18</_long>
+ </option>
+ <option name="run_command19_edge" type="edge">
+ <_short>Run command 19</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command19</_long>
+ </option>
+ <option name="run_command20_edge" type="edge">
+ <_short>Run command 20</_short>
+ <_long>A edge bunding that when invoked, will run the shell command identified by command20</_long>
+ </option>
</group>
</options>
</plugin>
diff --git a/plugins/commands/src/commands.cpp b/plugins/commands/src/commands.cpp
index 11df0d0..70fae0e 100644
--- a/plugins/commands/src/commands.cpp
+++ b/plugins/commands/src/commands.cpp
@@ -66,6 +66,15 @@ CommandsScreen::CommandsScreen (CompScreen *s) :
optionSetRunCommand9KeyInitiate (DISPATCH (CommandsOptions::Command9));
optionSetRunCommand10KeyInitiate (DISPATCH (CommandsOptions::Command10));
optionSetRunCommand11KeyInitiate (DISPATCH (CommandsOptions::Command11));
+ optionSetRunCommand12KeyInitiate (DISPATCH (CommandsOptions::Command12));
+ optionSetRunCommand13KeyInitiate (DISPATCH (CommandsOptions::Command13));
+ optionSetRunCommand14KeyInitiate (DISPATCH (CommandsOptions::Command14));
+ optionSetRunCommand15KeyInitiate (DISPATCH (CommandsOptions::Command15));
+ optionSetRunCommand16KeyInitiate (DISPATCH (CommandsOptions::Command16));
+ optionSetRunCommand17KeyInitiate (DISPATCH (CommandsOptions::Command17));
+ optionSetRunCommand18KeyInitiate (DISPATCH (CommandsOptions::Command18));
+ optionSetRunCommand19KeyInitiate (DISPATCH (CommandsOptions::Command19));
+ optionSetRunCommand20KeyInitiate (DISPATCH (CommandsOptions::Command20));
optionSetRunCommand0ButtonInitiate (DISPATCH (CommandsOptions::Command0));
optionSetRunCommand1ButtonInitiate (DISPATCH (CommandsOptions::Command1));
@@ -79,6 +88,15 @@ CommandsScreen::CommandsScreen (CompScreen *s) :
optionSetRunCommand9ButtonInitiate (DISPATCH (CommandsOptions::Command9));
optionSetRunCommand10ButtonInitiate (DISPATCH (CommandsOptions::Command10));
optionSetRunCommand11ButtonInitiate (DISPATCH (CommandsOptions::Command11));
+ optionSetRunCommand12ButtonInitiate (DISPATCH (CommandsOptions::Command12));
+ optionSetRunCommand13ButtonInitiate (DISPATCH (CommandsOptions::Command13));
+ optionSetRunCommand14ButtonInitiate (DISPATCH (CommandsOptions::Command14));
+ optionSetRunCommand15ButtonInitiate (DISPATCH (CommandsOptions::Command15));
+ optionSetRunCommand16ButtonInitiate (DISPATCH (CommandsOptions::Command16));
+ optionSetRunCommand17ButtonInitiate (DISPATCH (CommandsOptions::Command17));
+ optionSetRunCommand18ButtonInitiate (DISPATCH (CommandsOptions::Command18));
+ optionSetRunCommand19ButtonInitiate (DISPATCH (CommandsOptions::Command19));
+ optionSetRunCommand20ButtonInitiate (DISPATCH (CommandsOptions::Command20));
optionSetRunCommand0EdgeInitiate (DISPATCH (CommandsOptions::Command0));
optionSetRunCommand1EdgeInitiate (DISPATCH (CommandsOptions::Command1));
@@ -92,6 +110,15 @@ CommandsScreen::CommandsScreen (CompScreen *s) :
optionSetRunCommand9EdgeInitiate (DISPATCH (CommandsOptions::Command9));
optionSetRunCommand10EdgeInitiate (DISPATCH (CommandsOptions::Command10));
optionSetRunCommand11EdgeInitiate (DISPATCH (CommandsOptions::Command11));
+ optionSetRunCommand12EdgeInitiate (DISPATCH (CommandsOptions::Command12));
+ optionSetRunCommand13EdgeInitiate (DISPATCH (CommandsOptions::Command13));
+ optionSetRunCommand14EdgeInitiate (DISPATCH (CommandsOptions::Command14));
+ optionSetRunCommand15EdgeInitiate (DISPATCH (CommandsOptions::Command15));
+ optionSetRunCommand16EdgeInitiate (DISPATCH (CommandsOptions::Command16));
+ optionSetRunCommand17EdgeInitiate (DISPATCH (CommandsOptions::Command17));
+ optionSetRunCommand18EdgeInitiate (DISPATCH (CommandsOptions::Command18));
+ optionSetRunCommand19EdgeInitiate (DISPATCH (CommandsOptions::Command19));
+ optionSetRunCommand20EdgeInitiate (DISPATCH (CommandsOptions::Command20));
}
bool