aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-01-31 08:13:45 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-01-31 08:14:06 (GMT)
commitdc47491533e0ca7cf5a5386a10e68fbaf873e9db (patch)
tree4ee0c68722207189912a106d3f77e9cab52e65a8 /src/FbCommands.hh
parent716532dd47d718cb548da5f65b53a8b744ce235f (diff)
downloadfluxbox_pavel-dc47491533e0ca7cf5a5386a10e68fbaf873e9db.zip
fluxbox_pavel-dc47491533e0ca7cf5a5386a10e68fbaf873e9db.tar.bz2
Adds 'ClientPatternTest' command
ClientPatterns might be tricky to get right. Instead of fiddling around in either the keys-file or the apps-file and restarting fluxbox to see if the changes had any effect / matched the right windows, 'ClientPatternTest' and the fluxbox-remote should make this easier: $> fluxbox-remote "clientpatterntest (title=.*vim*)" This causes fluxbox to store the list of matched windows in the _FLUXBOX_ACTION_RESULT property onto the rootwindow. This property might then be read by: $> xprop -root _FLUXBOX_ACTION_RESULT or $> fluxbox-remote result The format of the list is: win_id \t title_of_window \n win_id is '-1' when fluxbox wasn't able to parse the given ClientPattern. win_id is '0' when there are no windows matching the given ClientPattern.
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r--src/FbCommands.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index b6b1f7f..d9639ad 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -218,6 +218,16 @@ private:
218 Destination m_dest; 218 Destination m_dest;
219}; 219};
220 220
221
222/// test client pattern
223class ClientPatternTestCmd: public FbTk::Command<void> {
224public:
225 ClientPatternTestCmd(const std::string& args) : m_args(args) { };
226 void execute();
227private:
228 std::string m_args;
229};
230
221} // end namespace FbCommands 231} // end namespace FbCommands
222 232
223#endif // FBCOMMANDS_HH 233#endif // FBCOMMANDS_HH