diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-01-31 08:13:45 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-01-31 08:14:06 (GMT) |
commit | dc47491533e0ca7cf5a5386a10e68fbaf873e9db (patch) | |
tree | 4ee0c68722207189912a106d3f77e9cab52e65a8 /src/ClientPattern.hh | |
parent | 716532dd47d718cb548da5f65b53a8b744ce235f (diff) | |
download | fluxbox-dc47491533e0ca7cf5a5386a10e68fbaf873e9db.zip fluxbox-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/ClientPattern.hh')
-rw-r--r-- | src/ClientPattern.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ClientPattern.hh b/src/ClientPattern.hh index a5b7206..358977a 100644 --- a/src/ClientPattern.hh +++ b/src/ClientPattern.hh | |||
@@ -89,6 +89,7 @@ public: | |||
89 | * the column of the error is stored in m_matchlimit | 89 | * the column of the error is stored in m_matchlimit |
90 | */ | 90 | */ |
91 | int error() const { return m_terms.empty() ? 1 : 0; } | 91 | int error() const { return m_terms.empty() ? 1 : 0; } |
92 | int error_col() const { return m_matchlimit; } | ||
92 | 93 | ||
93 | static FbTk::FbString getProperty(WinProperty prop, const Focusable &client); | 94 | static FbTk::FbString getProperty(WinProperty prop, const Focusable &client); |
94 | 95 | ||