Commit graph

26 commits

Author SHA1 Message Date
Mathias Gumz
dc47491533 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.
2013-01-31 09:14:06 +01:00
Mark Tiefenbruck
610a15ac47 add fullscreen, maximizedhorizontal, and maximizedvertical tests to ClientPattern 2012-07-01 21:22:01 -07:00
Mathias Gumz
faa4c97888 added 'SetXProp' action and (@PROP=foo) clientpattern
these two allow 'tagging' of arbitrary windows with 'tags' (or 'labels'). such 'tagged' windows can then be used in ':NextWindow (@PROP=foo)' commands to quickly cycle through a subset of available windows.
since the 'tags' are applied as real xproperties to a window they survive a restart of fluxbox or even another windowmanager. the user can also set the tags by using xprop(1).

the next step regarding the UI should be to visualize the tags of a window.
2010-09-11 17:09:07 +02:00
Mathias Gumz
a6ed9498cc code cleanup
* moved code from public API to internals
* avoid code duplication ( while(!m_terms.empty()) ...)
* cosmetic '(*it)->' vs 'term.'
2010-09-10 16:35:49 +02:00
Mathias Gumz
534db1d409 reduced 'switch/case' and 'else if' hell a little bit 2010-09-09 15:33:12 +02:00
Mark Tiefenbruck
589125672b allow matching screen number in ClientPattern 2009-06-28 13:10:58 -07:00
Mark Tiefenbruck
4bf00f6857 fix match limits in apps file, plus some documentation 2008-08-20 05:26:12 -07:00
Mark Tiefenbruck
4e64d45e16 add [transient] tag to apps file to match transient windows 2008-08-19 09:18:32 -07:00
Mark Tiefenbruck
a84fe20c49 add (urgent=yes|no) options to ClientPattern 2008-06-08 11:29:47 -07:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Mathias Gumz
04cd2fd14c removed some unneeded headers 2007-12-30 16:32:53 +01:00
Mathias Gumz
e1f362ae76 'inline' in class declaration is implicitly inline 2007-12-29 22:38:53 +01:00
Mark Tiefenbruck
32eb2a148e move RegExp to FbTk 2007-12-27 22:15:06 -08:00
markt
5d7043320d allow arbitrary window patterns in iconbar 2007-11-12 21:59:43 +00:00
markt
f3afe787c1 introduced workspacename for ClientPattern, and some miscellaneous cleanup 2007-10-24 17:09:26 +00:00
markt
c849d3c7ff allow negated patterns 2007-10-23 17:30:49 +00:00
markt
7e4f8a3853 add support for transient windows in client patterns, and merge a few more changes from pre-devel 2007-10-14 18:05:31 +00:00
markt
a59428d67a merged changes from pre-devel 2007-10-13 21:51:37 +00:00
markt
698539d9b9 more dead functions 2006-07-01 02:56:46 +00:00
simonb
53f869aa52 reload the apps file on flux reload 2006-04-23 14:51:04 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +00:00
mathias
cf46669bc1 copyright date 2005-01-24 18:34:57 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +00:00
rathnor
bb779745f4 add apps file matching on role. Includes new textProperty property on
FbWindow.
2004-04-28 13:04:06 +00:00
fluxgen
b05f27d33a minor cleaning 2003-06-13 12:02:00 +00:00
rathnor
e139cbb028 add regular expression support in remember capabilities
see ChangeLog for details
2003-06-12 15:12:19 +00:00